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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6d748e86b56b1269 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-28 12:20:20 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Prefix to 'ACCESS must either statically match... But why? Date: 28 Jan 2003 12:20:20 -0800 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0301281220.448bc12e@posting.google.com> References: <5ad0dd8a.0301270746.6ad4c4b0@posting.google.com> <5ad0dd8a.0301271851.7c907f60@posting.google.com> <5ad0dd8a.0301280414.6ac8d45e@posting.google.com> NNTP-Posting-Host: 212.160.20.107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1043785220 6135 127.0.0.1 (28 Jan 2003 20:20:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Jan 2003 20:20:20 GMT Xref: archiver1.google.com comp.lang.ada:33515 Date: 2003-01-28T20:20:20+00:00 List-Id: "James S. Rogers" wrote in message news:... > Since this is a parameter array, why not merely return an array of > index pairs? The index pairs can index the beginning and end of > each array slice. That's rigth! I haven't thought about it. Thanks! > The idea of returning a set of "pointers" to pieces of an array is > very common in C Please note that an access to array slice is by no means less safe than an access to the whole array. Thus I wish Ada had them. Thanks for your help! Regards, Wojtek