comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: (generic) child package of generic package; intantiation of
Date: Tue, 30 Jan 2001 11:56:03 -0500
Date: 2001-01-30T16:56:03+00:00	[thread overview]
Message-ID: <3A76F223.B0D07EB7@averstar.com> (raw)
In-Reply-To: QEkd6.9767$Qb7.1488044@newsb.telia.net

"Peter Hend�n" wrote:
> 
> Mark, Marc, Pat:
> 
> Thanks a lot. I should have known this, but got a bit confused over other
> errors I got when I first compiled.

Unfortunately, Mark, Marc, and Pat all forgot to mention that you
have to "with" the child unit where you plan to instantiate it.
The way to think about a "with" clause for a child is that it effectively
inserts the child into the parent.  With a child of a generic,
inserting the child into the generic parent means that all instances
of the generic parent now include the generic child nested within
them.  You can then instantiate one of those nested generics,
given any instance of the parent.

But the key thing to remember is that the nested generic is only
made visible where a "with" clause for the generic child applies.

> 
> Thanks again
> Peter
> 
> --
> Peter Hend�n           http://www.algonet.se/~phenden
> ICQ: 14672398
> Teknisk Dokumentation AB          http://www.tdab.com

-- 
-Tucker Taft   stt@avercom.net   http://www.averstar.com/~stt/
Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA  USA
(AverCom was formed 1/1/01 from the Commercial Division of AverStar)
(http://www.averstar.com/services/ebusiness_applications.html)



  reply	other threads:[~2001-01-30 16:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-29 16:30 (generic) child package of generic package; intantiation of Peter Hend�n
2001-01-29 17:20 ` Marc A. Criley
2001-01-29 17:24 ` mark.biggar
2001-01-29 17:25 ` Pat Rogers
2001-01-29 20:46   ` Peter Hend�n
2001-01-30 16:56     ` Tucker Taft [this message]
2001-01-30 21:33       ` Peter Hend�n
2001-01-30  4:48 ` Jeffrey Carter
2001-01-30 11:53   ` Peter Hend�n
  -- strict thread matches above, loose matches on Subject: below --
2001-01-31  5:34 Christoph Grein
replies disabled

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