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: <6u0e0k$gd2$1@nnrp1.dejanews.com> (raw)
In-Reply-To: WishList-1809982157000001@a17.phoenix-14.goodnet.com

In article <WishList-1809982157000001@a17.phoenix-14.goodnet.com>,
  WishList@2600.com (Technobabble) wrote:
> 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


I strongly suggest that you post COMPLETE examples. When you
are writing at a vague level and don't know the syntax of
the language precisely, let alone the semantics, it gets
VERY hard to guess what your misconceptions might be. You
will find that you get much better results if

(a) you write a complete program

(b) you compile it

(c) you try to figure out the error messages you get

(d) if you can't figure out the error messages, post the
ENTIRE (smallest possible) program that generates the
error messages, and ask.

I often find that students think they know something and so
they pose a question in a garbled form, that depends on this
knowledge, the only trouble is, the knowledge happens to be
wrong.

If you don't post a complete example, you may easily have
the phenomenon of people being confused by what you write,
and then adding to the confusion by answering something
different than what you thought you were asking.


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




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