From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4bce46ddadaa9806 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: What is wrong here? (Generic and controlled types) Date: 2000/04/06 Message-ID: <8ci99q$tum$1@nnrp1.deja.com>#1/1 X-Deja-AN: 607573520 References: <38E871E6.8D9EBE71@lufmech.rwth-aachen.de> <8caebe$6us$1@nnrp1.deja.com> <8cahmn$apq$1@nnrp1.deja.com> <873dp3hv8x.fsf@deneb.cygnus.argh.org> X-Http-Proxy: 1.0 x23.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Apr 06 15:08:57 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-06T00:00:00+00:00 List-Id: In article <873dp3hv8x.fsf@deneb.cygnus.argh.org>, Florian Weimer wrote: > Robert Dewar 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.