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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e8cd190abfc4972 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Odd array dimension error GNAT Date: 1998/08/19 Message-ID: <6reivn$t84@hacgate2.hac.com>#1/1 X-Deja-AN: 382631701 References: <35dc97cd.17402128@news.geccs.gecm.com> <6rclv0$bk@hacgate2.hac.com> <35db7934.1130426@news.geccs.gecm.com> <35dfb078.15280421@news.geccs.gecm.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Hughes Aircraft Company Newsgroups: comp.lang.ada Date: 1998-08-19T00:00:00+00:00 List-Id: Brian Orpin wrote in message <35dfb078.15280421@news.geccs.gecm.com>... >On Wed, 19 Aug 1998 05:14:35 -0500, "David C. Hoos, Sr." > wrote: > >Doh! if I had declared the range to be 1..2 in the first place as I >intended then it would have worked............ >Thanks > Yes, but the code would still have been "wrong." Suppose one or both of the index types had been enumerations (e.g., the days of the week), then the attributes 'First, 'Last, and 'Range would yield enumeration values. Then 'First + 1 would be illegal. Furthermore, the expression inside the parenthesis must be a positive value (within the dimensions -- not the index ranges -- of the array). David C. Hoos, Sr.