From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: gnat.string_split , howto manipulate slice numbers Date: Tue, 29 Oct 2019 17:53:44 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 Oct 2019 16:53:45 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9fd88ef5802192d0a64dcef96697314a"; logging-data="17900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iD0sPblS9JLykLdu2C5DcaQd0SonUTpU=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 Cancel-Lock: sha1:9GQXXo7PliauftrV/Z/pI6sFb2k= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57376 Date: 2019-10-29T17:53:44+01:00 List-Id: On 10/29/19 2:54 AM, Alain De Vos wrote: > lsblk.adb:91:44: operator for type "Slice_Number" defined at g-arrspl.ads:116, instance at g-strspl.ads:39 is not directly visible As the error message indicates, this is a visibility problem. Understanding visibility is key to understanding Ada. Since it's clear you don't understand visibility yet, I suggest you read /Ada Distilled/ https://www.adaic.org/wp-content/uploads/2010/05/Ada-Distilled-24-January-2011-Ada-2005-Version.pdf Yes, it's for ISO/IEC 8652:2007, but visibility is still much the same. -- Jeff Carter "You cheesy lot of second-hand electric donkey-bottom biters." Monty Python & the Holy Grail 14