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: Vincent Marciante Subject: Re: What is wrong here? (Generic and controlled types) Date: 2000/04/21 Message-ID: <38FFFDEE.431A@li.net>#1/1 X-Deja-AN: 613865438 Content-Transfer-Encoding: 7bit References: <38E871E6.8D9EBE71@lufmech.rwth-aachen.de> <8caebe$6us$1@nnrp1.deja.com> <8cahmn$apq$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@verio.net X-Trace: nuq-read.news.verio.net 956300798 209.139.0.64 (Fri, 21 Apr 2000 07:06:38 GMT) Organization: Verio MIME-Version: 1.0 NNTP-Posting-Date: Fri, 21 Apr 2000 07:06:38 GMT Newsgroups: comp.lang.ada Date: 2000-04-21T00:00:00+00:00 List-Id: 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! 29. package Real_Vectors is new Generic_Vectors(Real, Index, Zero); | >>> instantiation error at generic_vectors.ads:23 >>> controlled type must be declared in a package ^^^^^^^^^^^^ >>> that is a library unit ^^^^^^^^^^^^^^^^^^^^^^^^^^ Both "package" and "library unit" are in the ARM's index.