comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: What is wrong here? (Generic and controlled types)
Date: 2000/04/06
Date: 2000-04-06T00:00:00+00:00	[thread overview]
Message-ID: <8ci99q$tum$1@nnrp1.deja.com> (raw)
In-Reply-To: 873dp3hv8x.fsf@deneb.cygnus.argh.org

In article <873dp3hv8x.fsf@deneb.cygnus.argh.org>,
  Florian Weimer <fw-usenet@deneb.cygnus.argh.org> wrote:
> Robert Dewar <robert_dewar@my-deja.com> writes:
>
> |    29.    package Real_Vectors is new Generic_Vectors(Real,
Index, Zero);
> |           |
> |        >>> instantiation error at generic_vectors.ads:23
> |        >>> controlled type must be declared at the library
level
> |        >>> instantiation error at generic_vectors.ads:75
> |        >>> controlled type must be declared at the library
level
>
> > P.S. it is hard to see how the GNAT message could be any
> > clearer, suggestions welcome!
>
> I didn't understand this message, either.  AFAIK, the term
"library
> level" is not mentioned in Cohen's book -- the one I used (at
least,
> it's not listed in the index).


Actually I think library level is a pretty fundamental concept,
it simply corresponds to the intuitive and informal notion
of global. You certainly do NOT need to understand accessibility
levels to understand this concept, and it is a very basic one.
Odd that Cohen does not mention it, one is always at the mercy
of idiosyncrasies of text books :-)

But you are right, probably the use of the term local or global,
while not so technically accurate would be clearer.

perhaps something like

library (global) level

might get the best of both worlds?


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-04-06  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-03  0:00 What is wrong here? (Generic and controlled types) Alexander Boucke
2000-04-03  0:00 ` Ted Dennison
2000-04-03  0:00   ` Robert Dewar
2000-04-03  0:00     ` Florian Weimer
2000-04-03  0:00       ` tmoran
2000-04-04  0:00       ` Alexander Boucke
2000-04-06  0:00       ` Robert Dewar [this message]
2000-04-21  0:00         ` Florian Weimer
2000-04-03  0:00     ` swhalen
2000-04-06  0:00       ` Robert Dewar
2000-04-03  0:00     ` Ted Dennison
2000-04-04  0:00     ` Robert A Duff
2000-04-06  0:00       ` Robert Dewar
2000-04-06  0:00       ` Mats Weber
2000-04-06  0:00         ` Robert Dewar
2000-04-06  0:00           ` Robert A Duff
2000-04-06  0:00             ` Robert Dewar
2000-04-21  0:00     ` Vincent Marciante
2000-04-21  0:00       ` Robert Dewar
2000-04-21  0:00         ` Robert Dewar
2000-04-22  0:00         ` Vincent Marciante
2000-04-22  0:00           ` Robert Dewar
2000-04-03  0:00   ` Ehud Lamm
2000-04-04  0:00   ` Alexander Boucke
2000-04-06  0:00     ` Robert Dewar
replies disabled

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