comp.lang.ada
 help / color / mirror / Atom feed
From: WishList@2600.com (Technobabble)
Subject: Re: unconstrainded array question
Date: 1998/09/19
Date: 1998-09-19T00:00:00+00:00	[thread overview]
Message-ID: <WishList-1809982157000001@a17.phoenix-14.goodnet.com> (raw)
In-Reply-To: 36033452.12702502@SantaClara01.news.InterNex.Net

In article <36033452.12702502@SantaClara01.news.InterNex.Net>,
tmoran@bix.com (Tom Moran) wrote:

> Since you gave no definition for whatever Object might be, it's a
> little hard to tell what "This.xyz" might possibly be.  If xyz is an
> array, then it clearly must have bounds and it's range is defined.  If
> xyz is a type, and one with indefinite bounds, then obviously you
> can't use those undefined bounds as if they had values. 

Greetings Tom,

xyz is an unconstrained array that is declared with a discriminant to
constrain it. Since it is of type unconstrained array I just want to know
if the RANGE attribute works eg. in a loop.  I guess that you are saying
YES it does since it does have bounds.  The question is if I have an
unconstrained array then I can declare many objects of that type with
different ranges, so will the RANGE attribute then return different ranges
for different objects.  Is this legal?
It makes sense to me that you are correct.  Also, Barnes is confusing on
the subject, page 125 of second edition, last paragraph on this topic.

Richmond




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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-19  0:00 unconstrainded array question Technobabble
1998-09-19  0:00 ` Tucker Taft
1998-09-19  0:00 ` Tom Moran
1998-09-19  0:00   ` Technobabble [this message]
1998-09-19  0:00     ` dewarr
1998-09-19  0:00   ` dewarr
1998-09-19  0:00   ` dewarr
replies disabled

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