comp.lang.ada
 help / color / mirror / Atom feed
From: rcollinson@my-deja.com
Subject: Re: Calling generic children from their parent?
Date: 1999/06/23
Date: 1999-06-23T00:00:00+00:00	[thread overview]
Message-ID: <7krps5$ldb$1@nnrp1.deja.com> (raw)
In-Reply-To: dale-2306991457170001@dale.cs.rmit.edu.au




In article
<dale-2306991457170001@dale.cs.rmit.edu.au>,
  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.




  reply	other threads:[~1999-06-23  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-23  0:00 Calling generic children from their parent? RCollinson
1999-06-23  0:00 ` Matthew Heaney
1999-06-23  0:00 ` Dale Stanbrough
1999-06-23  0:00   ` rcollinson [this message]
1999-06-24  0:00     ` Tucker Taft
1999-06-24  0:00       ` rcollinson
1999-06-25  0:00         ` Tucker Taft
1999-07-01  0:00           ` rcollinson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox