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!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Initialization of Arrays in Ada Date: Wed, 24 Feb 2010 19:01:17 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <28a44c31-cbe8-4f22-a109-1e954a34e87c@u9g2000yqb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1267056066 7106 192.74.137.71 (25 Feb 2010 00:01:06 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 25 Feb 2010 00:01:06 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uCKHwd1XqhCKG+eIKrJLPx92UBQ= Xref: g2news1.google.com comp.lang.ada:9312 Date: 2010-02-24T19:01:17-05:00 List-Id: "Jeffrey R. Carter" writes: > 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. Right. And you might want to create an empty array that goes from 'First to 'First-1, which causes trouble with Integer. It's usually better to use "Positive range <>", or sometimes "Natural range <>", rather than "Integer range <>". - Bob