comp.lang.ada
 help / color / mirror / Atom feed
* Re: (generic) child package of generic package; intantiation of
@ 2001-01-31  5:34 Christoph Grein
  0 siblings, 0 replies; 10+ messages in thread
From: Christoph Grein @ 2001-01-31  5:34 UTC (permalink / raw)
  To: comp.lang.ada

Peter Hendén wrote:

> with GenParent.GenChild;  -- have to with the generic child package (1)
>
> package InstantiatedParent.InstantiatedChild is new
>         InstantiatedParent.GenChild;

That's correct. But you need not instantiate as a child, you can instantiate in 
any hierarchy:

   with GenParent.GenChild;
   with InstantiatedParent;  -- you need then also this

   package Instantiated_Anywhere is new InstantiatedParent.GenChild;





^ permalink raw reply	[flat|nested] 10+ messages in thread
* (generic) child package of generic package; intantiation of
@ 2001-01-29 16:30 Peter Hend�n
  2001-01-29 17:20 ` Marc A. Criley
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Peter Hend�n @ 2001-01-29 16:30 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

I have the following:

generic
    Count : in Natural := 1;
package Parent is
    ...
end Parent;

generic
package Parent.RarelyUsedOps is
    ...
end Parent.RarelyUsedOps;

I have no problem instantiating Parent, of course, but how in the name of Ms
Lovelace do I instantiate the child package?

TIA and Regards,
Peter

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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-01-31  5:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-31  5:34 (generic) child package of generic package; intantiation of Christoph Grein
  -- strict thread matches above, loose matches on Subject: below --
2001-01-29 16:30 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
2001-01-30 21:33       ` Peter Hend�n
2001-01-30  4:48 ` Jeffrey Carter
2001-01-30 11:53   ` Peter Hend�n

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