comp.lang.ada
 help / color / mirror / Atom feed
From: dewarr@my-dejanews.com
Subject: Re: unconstrainded array question
Date: 1998/09/19
Date: 1998-09-19T00:00:00+00:00	[thread overview]
Message-ID: <6u0dat$fjf$1@nnrp1.dejanews.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.


As I often remind people, technical information that you
read on a newsgroup like this can be wrong or misleading.
This is an example.

There are no array objects in Ada with "indefinite" or
"undefined" bounds. All array objects are constrained and
have well defined bounds, so yes, of course, if the type
of Object is an array, you can use the 'Range attribute
in this case (it is indeed the primary and most familiar
use of the range attribute!)

The *type* of an array object may be unconstrained, but of
course, as in the original questioner's example, you apply
the Range attribute to the object, not the type!

Robert Dewar

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




  parent 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   ` dewarr
1998-09-19  0:00   ` dewarr [this message]
1998-09-19  0:00   ` Technobabble
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