comp.lang.ada
 help / color / mirror / Atom feed
From: okellogg@freenet.de (Oliver Kellogg)
Subject: child packages and nested packages
Date: 23 Mar 2002 07:02:49 -0800
Date: 2002-03-23T15:02:49+00:00	[thread overview]
Message-ID: <6a6390b8.0203230702.14c071c1@posting.google.com> (raw)

Hello CLA,

How come child packages are only possible for library level packages?

I now encountered a situation where I'd like to create a child 
package of a nested package:

-- file: pkg.ads
package Pkg is
   package Nested is
      type Object is tagged null record;
   end Nested;
end Pkg;

-- file: pkg-nested-child.ads
package Pkg.Nested.Child is
   type Derived is new Object with null record;
end Pkg.Nested.Child;


(The only thing that crosses my naive mind is that this makes 
life harder for the Ada compiler in that if a file pkg-nested.ads 
cannot be found then the compiler would need to look inside pkg.ads 
to see if the parent to which the child refers can be found there.)

Thanks,

O. Kellogg



             reply	other threads:[~2002-03-23 15:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-23 15:02 Oliver Kellogg [this message]
2002-03-25 15:01 ` child packages and nested packages Ted Dennison
2002-03-25 19:26   ` Oliver Kellogg
2002-03-25 22:31     ` Stephen Leake
2002-04-23 21:44     ` Oliver Kellogg
2002-04-24 14:52       ` Oliver Kellogg
2002-03-26 14:21   ` Marin David Condic
2002-03-28  9:51 ` Oliver Kellogg
2002-03-28 14:49   ` Ted Dennison
2002-03-28 18:30     ` Oliver Kellogg
2002-03-28 22:13       ` Ted Dennison
2002-03-29  5:30         ` Oliver Kellogg
2002-03-29 11:59           ` Sergey Koshcheyev
2002-03-29 15:14             ` Ted Dennison
2002-03-29 13:05           ` Oliver Kellogg
  -- strict thread matches above, loose matches on Subject: below --
2010-03-04  5:37 Oliver Kellogg
2010-03-04 14:55 ` Admin - Do Not Email
2010-03-04 16:12 ` Adam Beneschan
replies disabled

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