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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,205d1b0b3133678 X-Google-Attributes: gid103376,public From: rcollinson@my-deja.com Subject: Re: Calling generic children from their parent? Date: 1999/06/23 Message-ID: <7krps5$ldb$1@nnrp1.deja.com>#1/1 X-Deja-AN: 493097740 References: <19990623004221.05877.00000987@ngol05.aol.com> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 207.109.1.73 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jun 23 20:27:19 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (Win95; U ;Nav) via NetCache version NetApp Release 3.2.1: Thu May 21 15:16:48 PDT 1998 Date: 1999-06-23T00:00:00+00:00 List-Id: In article , dale@cs.rmit.edu.au (Dale Stanbrough) wrote: > rcollinson@aol.com wrote: > > > 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? > > You have to instantiate all of the generics that you want to use. Maybe > you have done this, but your example was not sufficient to show this. > > Dale > My problem is that I TRY to instantiate a generic child unit inside the body of the parent and it will not compile. The text Rendezvous with Ada 95 states this is possible on page 337 but I have been unable to make it work. (On a slightly different subject, why in the example on page 337 do they WITH and ELABORATE Generic_Parent.Child in the last exerpt?) Roger Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.