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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2ac407a2a34565a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.50.106.166 with SMTP id gv6mr9331564igb.0.1330540531069; Wed, 29 Feb 2012 10:35:31 -0800 (PST) Path: h9ni23805pbe.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Array Help? Date: Wed, 29 Feb 2012 11:35:27 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <10615783-d4a9-4cbd-8971-53ba1100d6a0@b18g2000vbz.googlegroups.com> NNTP-Posting-Host: 97.215.242.167 Mime-Version: 1.0 X-Trace: adenine.netfront.net 1330540530 34896 97.215.242.167 (29 Feb 2012 18:35:30 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Wed, 29 Feb 2012 18:35:30 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-02-29T11:35:27-07:00 List-Id: On 02/29/2012 09:09 AM, Robert A Duff wrote: > > Right, and this is a rich source of bugs. You usually want > arrays to start at 1, or sometimes 0 (assuming the index type > is a signed integer type, which is almost always the case > for unconstrained arrays). My 1st programming job, using FORTRAN 66, dealt with tree-ring data. We had data from 1600 to 1970. Calculating the correct array index for a year was a rich source of bugs for us; if we'd been able to have the lower bounds be 1600 rather than 1 life would have been a lot easier. -- Jeff Carter "Sir Robin the not-quite-so-brave-as-Sir-Lancelot, who had nearly fought the Dragon of Angnor, who nearly stood up to the vicious Chicken of Bristol, and who had personally wet himself at the Battle of Badon Hill." Monty Python & the Holy Grail 68 --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---