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: swhalen@netcom.com Subject: Re: What is wrong here? (Generic and controlled types) Date: 2000/04/03 Message-ID: <8catei$n8$1@slb6.atl.mindspring.net>#1/1 X-Deja-AN: 606213640 References: <38E871E6.8D9EBE71@lufmech.rwth-aachen.de> <8caebe$6us$1@nnrp1.deja.com> <8cahmn$apq$1@nnrp1.deja.com> Organization: ? User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (SunOS/4.1.4 (sun4m)) Newsgroups: comp.lang.ada Date: 2000-04-03T00:00:00+00:00 List-Id: Robert Dewar wrote: : It is almost always possible to work around this trivially by : simply including a controlled component in the type instead : of making the entire type controlled. : 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 at the library level >>> (consider including controlled component instead >>> of making entire type controlled?) I know I'd appreciate getting a helpful hint like this, even though I have no reason to expect the compiler to do so. Steve -- {===--------------------------------------------------------------===} Steve Whalen swhalen@netcom.com {===--------------------------------------------------------------===}