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!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to extract range from array References: <1142608344.661977.123860@i39g2000cwa.googlegroups.com> <2901131.Fq1M6N3cKt@linux1.krischik.com> In-Reply-To: <2901131.Fq1M6N3cKt@linux1.krischik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <9tFTf.874590$xm3.360574@attbi_s21> NNTP-Posting-Host: 12.214.35.215 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1142891461 12.214.35.215 (Mon, 20 Mar 2006 21:51:01 GMT) NNTP-Posting-Date: Mon, 20 Mar 2006 21:51:01 GMT Date: Mon, 20 Mar 2006 21:51:01 GMT Xref: g2news1.google.com comp.lang.ada:3507 Date: 2006-03-20T21:51:01+00:00 List-Id: Martin Krischik wrote: > > subtype Positive is Integer range 1 .. +(2 ** 31 - 1); The declaration of Positive is defined by ARM A.1, and so is the same for all implementations: subtype Positive is Integer range 1 .. Integer'Last; An implementation that used +(2 ** 31 - 1) instead of Integer'Last would not be Ada. Of course, the meaning of Integer'Last depends on the definition of Integer, which is implementation defined, but the declaration of Positive is the same. -- Jeff Carter "From this day on, the official language of San Marcos will be Swedish." Bananas 28