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 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:56:56 +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:56:58 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9fd88ef5802192d0a64dcef96697314a"; logging-data="19166"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j4k+dZCXrw0Dodyn6cOiX/qKFgrIZLvE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 Cancel-Lock: sha1:vgif+pNyFwyWRvTpksqCFxJyqQI= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57377 Date: 2019-10-29T17:56:56+01:00 List-Id: On 10/29/19 9:17 AM, briot.emmanuel@gmail.com wrote: > > use type GNAT.String_Split.Slice_Number; > > or > use GNAT.String_Split; or function "-" (Left : GNAT.String_Split.Slice_Number; Right : GNAT.String_Split.Slice_Number) return GNAT.String_Split.Slice_Number renames GNAT.String_Split."-"; or GNAT.String_Split."-" (Left, Right) There are more ways to get around lack of visibility than just use clauses. -- Jeff Carter "You cheesy lot of second-hand electric donkey-bottom biters." Monty Python & the Holy Grail 14