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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1ff542cf207f32ca X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.73.229 with SMTP id o5mr14527555pbv.7.1328632875775; Tue, 07 Feb 2012 08:41:15 -0800 (PST) Path: lh20ni271085pbb.0!nntp.google.com!news2.google.com!postnews.google.com!s7g2000vby.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Help needed - Upper Bound of an array - Question. Date: Tue, 7 Feb 2012 08:13:11 -0800 (PST) Organization: http://groups.google.com Message-ID: <047458b4-4e2d-4fdf-bede-486ee08f40f9@s7g2000vby.googlegroups.com> References: <9203a648-af0d-45a1-87ba-67373435b391@k10g2000yqk.googlegroups.com> NNTP-Posting-Host: 62.203.198.182 Mime-Version: 1.0 X-Trace: posting.google.com 1328632875 10073 127.0.0.1 (7 Feb 2012 16:41:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Feb 2012 16:41:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s7g2000vby.googlegroups.com; posting-host=62.203.198.182; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-02-07T08:13:11-08:00 List-Id: On 7 f=E9v, 16:59, adacrypt wrote: > Question : can I use your 'big array' declaration procedure in Ada-95 > just as you have typed here ? that would be great - will it work just > by replacing the present declaration with this? do I type in as a > straight crib just like that, regards - adacrypt The only difference is that the array itself is My_Array.all; My_Array is its access. But since My_Array.all(i) can also be written shorter as My_Array(i), the changes to you program will be minimal. And yes, you can use it in Ada 95 and above, and even in Ada 83 (with a small difference: no "Ada." before Unchecked_Deallocation). _________________________ Gautier's Ada programming http://gautiersblog.blogspot.com/search/label/Ada NB: follow the above link for a valid e-mail address