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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,205d1b0b3133678,start X-Google-Attributes: gid103376,public From: rcollinson@aol.com (RCollinson) Subject: Calling generic children from their parent? Date: 1999/06/23 Message-ID: <19990623004221.05877.00000987@ngol05.aol.com>#1/1 X-Deja-AN: 492802741 Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada X-Admin: news@aol.com Date: 1999-06-23T00:00:00+00:00 List-Id: Problem: I need to use a type in a generic parent body that is located in the generic child specification. I am having problems instantiating the child in the parent's body. The type is not recognized unless it is instantiated. Any ideas? generic type A; type B; package foo is type My_Type is tagged private; procedure Do_This; procedure Do_That; ... private type My_Type is record ... end record; end foo; with foo.bar; package body foo is My_Var : Foo.Bar.My_Extended_Type; -- !!! How do I get an instance of this variable -- !!! that is a type from the generic child??? -- !!! Is this possible??? end foo; -- ********************************************************8 generic package foo.bar is type My_Extended_Type is new My_Type with record ... end record; ... end foo.bar;