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=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:16c9:: with SMTP id a9mr578690qkn.94.1609867444790; Tue, 05 Jan 2021 09:24:04 -0800 (PST) X-Received: by 2002:a25:5c2:: with SMTP id 185mr615876ybf.161.1609867444535; Tue, 05 Jan 2021 09:24:04 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Jan 2021 09:24:04 -0800 (PST) In-Reply-To: <5f0c4c86-bea9-4007-b16e-b4b80749a8b5n@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=20.133.0.13; posting-account=YRfoYAoAAADhSEO2nLYx10QUUvp8akYl NNTP-Posting-Host: 20.133.0.13 References: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@googlegroups.com> <5f0c4c86-bea9-4007-b16e-b4b80749a8b5n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Lower bounds of Strings From: Stephen Davies Injection-Date: Tue, 05 Jan 2021 17:24:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61044 List-Id: On Tuesday, 5 January 2021 at 14:31:27 UTC, Stephen Davies wrote: > On Tuesday, 5 January 2021 at 11:57:18 UTC, Dmitry A. Kazakov wrote: > > S [1] - First array element > > S (1) - Array element at index 1 > Yes, I like that idea as a possible alternative solution. To take this a bit further, suppose we have an array on "Natural range <>" rather than "Positive range <>", I guess S[0] would now be the first element of slice S, which still seems reasonable. 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;