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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ad4:4390:: with SMTP id s16mr2273812qvr.28.1610544434420; Wed, 13 Jan 2021 05:27:14 -0800 (PST) X-Received: by 2002:a25:9902:: with SMTP id z2mr3004499ybn.339.1610544434164; Wed, 13 Jan 2021 05:27:14 -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: Wed, 13 Jan 2021 05:27:13 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=94.31.101.133; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.101.133 References: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@googlegroups.com> <37ada5ff-eee7-4082-ad20-3bd65b5a2778n@googlegroups.com> <26cac901-b901-4c4f-aba9-eab6cbd2a525n@googlegroups.com> <50f68100-8909-4fdb-ad26-14bcbc010775n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <51b90b8a-a0f4-4a36-8eef-015eee8abdadn@googlegroups.com> Subject: Re: Lower bounds of Strings From: AdaMagica Injection-Date: Wed, 13 Jan 2021 13:27:14 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61115 List-Id: Dmitry A. Kazakov schrieb am Mittwoch, 13. Januar 2021 um 13:00:19 UTC+1: > Nothing prevents implementation from using one of the bounds and the > length in the array's dope vector. It is a question of optimization. type UC is array (Integer range <>) of Something; procedure Proc (X: UC); Here, no sliding is allowed in a call to Proc. And, as Randy said before, X: UC (+1234..-1234); must return the correct values for 'First and 'Last. So an optimization would need three values, First, Last, Length. Why not?