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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ae8b13d4d815893c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed-fusi2.netcologne.de!195.14.215.230.MISMATCH!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 18 May 2009 21:36:42 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: (Num_Types.Mod_4 range 1..8) ------->why not (1..8)? References: <0571282b-0ab8-4eee-941f-e9369f5b4518@x6g2000vbg.googlegroups.com> In-Reply-To: <0571282b-0ab8-4eee-941f-e9369f5b4518@x6g2000vbg.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a11b8cb$0$32680$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 18 May 2009 21:36:43 CEST NNTP-Posting-Host: b05c9529.newsspool2.arcor-online.net X-Trace: DXC=ZMYS\=f`@lcf1oJaJ0@dmgA9EHlD;3Ycb4Fo<]lROoRa^YC2XCjHcbiSkTR2Qd1c^f;9OJDO8_SKfNSZ1n^B98ij5MQ]HJn5YDj X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:5905 Date: 2009-05-18T21:36:43+02:00 List-Id: convergence82 wrote: > type Data_Array is array (Num_Types.Mod_4 range 1..8) of > Num_Types.Mod_8; > > what's the difference between this and: > > type Data_Array is array (1..8) of Num_Types.Mod_8; > > ? Mod_4 range 1 .. 8 denotes a range of values in type Mod_4. The index range will be taken from type Mod_4. 1 .. 8 without the Mod_4 denotes a range of numbers from a "less specific" index type, determined by the rules of the language -- probably Integer. The details are found in and linked from RM 3.6.