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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dfc164e526616c68 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny05.POSTED!c2bfcbcf!not-for-mail Newsgroups: comp.lang.ada Subject: Re: How to extract range from array References: <1142608344.661977.123860@i39g2000cwa.googlegroups.com> Message-ID: From: "Ed Falis" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit User-Agent: Opera M2/8.52 (Win32, build 7721) Date: Mon, 20 Mar 2006 13:58:31 GMT NNTP-Posting-Host: 70.22.165.82 X-Complaints-To: abuse@verizon.net X-Trace: trndny05 1142863111 70.22.165.82 (Mon, 20 Mar 2006 08:58:31 EST) NNTP-Posting-Date: Mon, 20 Mar 2006 08:58:31 EST Xref: g2news1.google.com comp.lang.ada:3486 Date: 2006-03-20T13:58:31+00:00 List-Id: On Mon, 20 Mar 2006 08:14:37 -0500, Maciej Sobczak wrote: > subtype My_Range is Integer range My_Array'Range; > > This suggests that arrays cannot have more elements than Integer'Last. > Which cannot be true. > > What am I missing? That the above was an example. You could also do: subtype My_Range is Interfaces.Integer_64 range My_Array'Range; subtype My_Range is Interfaces.Unsigned_64 range My_Array'Range; or any other integer or modular type that is used to define the index of My_Array. - Ed