comp.lang.ada
 help / color / mirror / Atom feed
* Generic child units
@ 2003-05-13 17:46 
  2003-05-13 18:38 ` Stephen Leake
  0 siblings, 1 reply; 14+ messages in thread
From:  @ 2003-05-13 17:46 UTC (permalink / raw)


I need some enlightment in this area... Let us suppose that I have two 
generic packages declared in separate files and one is the parent of the 
other:

generic
    type Elem is private;
package Parent is
    type Vector is array (Integer range <>) of Elem;
end Parent;

generic
package Parent.Child is
    subtype Vector2D is Vector (1 .. 2);
end Parent.Child;

How can I instantiate the child package within the declarative region of 
the parent package (as required by RM 10.1(18))?

Rodrigo




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

end of thread, other threads:[~2003-05-17  1:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13 17:46 Generic child units 
2003-05-13 18:38 ` Stephen Leake
2003-05-13 19:18   ` David C. Hoos
2003-05-14  7:56   ` 
2003-05-15 16:30     ` Stephen Leake
2003-05-16  1:08     ` Robert A Duff
2003-05-16 19:24       ` Stephen Leake
2003-05-16 23:47         ` Georg Bauhaus
2003-05-17  0:57           ` Robert A Duff
2003-05-17  1:11             ` Georg Bauhaus
2003-05-17  1:04         ` Robert A Duff
2003-05-16 23:44       ` Georg Bauhaus
2003-05-17  0:23   ` Georg Bauhaus
2003-05-17  1:00     ` Robert A Duff

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