From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Lower bounds of Strings Date: Tue, 5 Jan 2021 19:28:34 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@googlegroups.com> <5f0c4c86-bea9-4007-b16e-b4b80749a8b5n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 5 Jan 2021 18:28:35 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b882898f0d6ff84e58935c58cb988072"; logging-data="30789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0g4KwhvCD/l3IDvNgXvjHG2NsBYMSq4I=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 Cancel-Lock: sha1:a/c6OVEg59vwubTVlOFojmrBJWQ= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61046 List-Id: On 1/5/21 6:24 PM, Stephen Davies wrote: > > Alternatively, thinking about my original suggestion, I guess the modern > Ada way would be to allow an aspect along the lines of: > subtype Mono_String is String with First => 1; You can get the effect of this with a predicate, but slices won't slide to match. -- Jeff Carter "He didn't get that nose from playing ping-pong." Never Give a Sucker an Even Break 110