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 13:51:33 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@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 12:51:34 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="acc6d857b2474373846ef61bab0e87f9"; logging-data="7794"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CAYwWsPID7cKJMU5gcEjLhMtNfGgBqJc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 Cancel-Lock: sha1:Clu9FbfSEMX0fspfIA9HjZUDYIE= In-Reply-To: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61041 List-Id: On 1/5/21 12:04 PM, Stephen Davies wrote: > > subtype Mono_String is String (1 .. <>); This already exists, although with a slightly different syntax: type String_From_1 (Length : Natural) is record Value : String (1 .. Length); end record; But perhaps it would be a good idea for a new language to have separate sequence types with positions but no indices? Such a language would only need constrained array types to serve as maps. -- Jeff Carter "I'm a vicious jungle beast!" Play It Again, Sam 131