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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,4d972ac0c79198a5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-13 12:18:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Generic child units Date: Tue, 13 May 2003 14:18:35 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3ec12f93$1@epflnews.epfl.ch> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:37296 Date: 2003-05-13T14:18:35-05:00 List-Id: I think the OP meant to say 10.1.1 (18) "Stephen Leake" wrote in message news:ubry6heul.fsf@nasa.gov... > Rodrigo Garc�a writes: > > > I need some enlightment in this area... Let us suppose that I have two > > generic packages declared in separate files and one is the parent of > > the other: > > > > generic > > type Elem is private; > > package Parent is > > type Vector is array (Integer range <>) of Elem; > > end Parent; > > > > generic > > package Parent.Child is > > subtype Vector2D is Vector (1 .. 2); > > end Parent.Child; > > > > How can I instantiate the child package > > with Parent.Child; > procedure Foo is > package Par is new Parent (Elem => Integer); > package Chi is new Par.Child; > begin > ... > end Foo; > > Note that the second instantiation is "Par.Child", not "Parent.Child". > > > within the declarative region of the parent package (as required by > > RM 10.1(18))? > > There is no RM 10.1 (18), at least in the copy I have (came with > GNAT). And I don't understand the rest of the sentence, either. So I > don't know what you mean here. > > -- > -- Stephe > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >