comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Odd array dimension error GNAT
Date: 1998/08/19
Date: 1998-08-19T00:00:00+00:00	[thread overview]
Message-ID: <6reivn$t84@hacgate2.hac.com> (raw)
In-Reply-To: 35dfb078.15280421@news.geccs.gecm.com


Brian Orpin wrote in message <35dfb078.15280421@news.geccs.gecm.com>...
>On Wed, 19 Aug 1998 05:14:35 -0500, "David C. Hoos, Sr."
><david.c.hoos.sr@ada95.com> 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.








      parent reply	other threads:[~1998-08-19  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <35dc97cd.17402128@news.geccs.gecm.com>
1998-08-18  0:00 ` Odd array dimension error GNAT David C. Hoos, Sr.
     [not found]   ` <35db7934.1130426@news.geccs.gecm.com>
1998-08-19  0:00     ` David C. Hoos, Sr.
     [not found]       ` <35dfb078.15280421@news.geccs.gecm.com>
1998-08-19  0:00         ` David C. Hoos, Sr. [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox