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 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: Alexander Boucke Subject: Re: What is wrong here? (Generic and controlled types) Date: 2000/04/04 Message-ID: <38E9A884.8A8782BE@lufmech.rwth-aachen.de>#1/1 X-Deja-AN: 606460160 Content-Transfer-Encoding: 7bit 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-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 954837124 6372 134.130.177.111 (4 Apr 2000 08:32:04 GMT) Organization: RWTH Aachen, Lehr- und Forschungsgebiet fuer Mechanik Mime-Version: 1.0 NNTP-Posting-Date: 4 Apr 2000 08:32:04 GMT Newsgroups: comp.lang.ada Date: 2000-04-04T08:32:04+00:00 List-Id: 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). The RM definition is easy to find, but > it's not very easy to understand (you must already know the concept of > "accessibility level"). This was the same for me (using Barnes/RM). BTW: if the f77-Compiler I used before would have put so good (and so many) Error-messages... :-) After all, that's one of the reasons to use Ada now. Alexander Boucke -- "I try to write idiot proof code, but they keep making better idiots." A. Stanley in comp.sys.sgi.admin