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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6e00ae5009f6fb00 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!informatik.uni-bremen.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: questions to generic Date: Wed, 29 Sep 2004 11:33:46 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1096457626 13096 134.91.1.34 (29 Sep 2004 11:33:46 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 29 Sep 2004 11:33:46 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:4374 Date: 2004-09-29T11:33:46+00:00 List-Id: Rick Santa-Cruz wrote: : Hi, : :> yes, the way you have done. :> :> : where Gen_Test_Client is the start-procedure? :> :> no. It has to be instantiated somewhere to become a real procedure. : And how and where do I have to instantiate the procedure then? wherever you like :) : So is it this way correct: Does you compiler report anything? : -- test-client: : with Pack1; -- by the way when I write here: with Pack1.Child_Pack; I get a : compilation-error. Why? That's the point. Pack1 is generic, it is not an instance. By writing Some_Package.Something_Else, you are referring to Something_Else in a real package (which can be a plain package, or an real instance of a generic package). Imagine you had a generic package as before, with a nested generic. But the formal parameter of the nested generic is different from the formal parameter of the outer package. The outer is instantiated with some actual type. What have you got? -- Georg