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: a07f3367d7,37f929805a8bf52b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.208.113.67.MISMATCH!goblin1!goblin.stu.neva.ru!news.tornevall.net!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Initialization of Arrays in Ada Date: Wed, 24 Feb 2010 17:50:25 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <28a44c31-cbe8-4f22-a109-1e954a34e87c@u9g2000yqb.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1267055426 12749 69.95.181.76 (24 Feb 2010 23:50:26 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 24 Feb 2010 23:50:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:9311 Date: 2010-02-24T17:50:25-06:00 List-Id: "Jeffrey R. Carter" wrote in message news:hm4732$7f6$1@tornado.tornevall.net... > sjw wrote: >> >> but then the indices of Arr are -2147483648 .. -2147483647 (ie, start >> at Integer'First. Not sure if this is mandated behaviour -- probably > > The indices start at Integer'First. The exact value of Integer'First > depends on the compiler. You cannot count on the range of Integer being > greater than a 16-bit signed integer. > > This is mandated: ARM 4.3.3(26): "[The bounds of the index range of an > array_aggregate are determined as follows:] For a > positional_array_aggregate ..., the lower bound is ... that of the > corresponding index subtype ..." Right. There is a reason that String is defined: array (Positive range <>) of Character; Randy.