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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.36.197 with SMTP id f188mr260826ita.37.1513618318079; Mon, 18 Dec 2017 09:31:58 -0800 (PST) X-Received: by 10.157.33.82 with SMTP id l18mr19484otd.6.1513618318003; Mon, 18 Dec 2017 09:31:58 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.kjsl.com!usenet.stanford.edu!g80no1018876itg.0!news-out.google.com!s63ni1634itb.0!nntp.google.com!g80no1018873itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 18 Dec 2017 09:31:57 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.39; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.39 References: <6bedbdee-ca7f-4d2a-83f9-6cc9c53d21cb@googlegroups.com> <3c367d8d-351e-4c72-b259-c04a5285d025@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2eb18a83-fd47-4200-81cb-84c3b4b242ad@googlegroups.com> Subject: Re: how to do things like procedure foo(A: string) is bar: string := A; begin; ...;end; From: Anh Vo Injection-Date: Mon, 18 Dec 2017 17:31:58 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:49516 Date: 2017-12-18T09:31:57-08:00 List-Id: On Monday, December 18, 2017 at 7:34:50 AM UTC-8, Mehdi Saada wrote: > I got it pretty early (was clear in the course) that array, and strings for the matter, can have arbitrary bounds. So with unconstrained formal parameters I always use 'LENGHT, 'First and 'Last, and no 'Range in for loop. It must be your typo of 'Length. Otherwise, the compiler will reject your code for sure. Anh Vo