From: Oliver Kellogg <okellogg@users.sourceforge.net>
Subject: Re: child packages and nested packages
Date: Thu, 4 Mar 2010 06:37:56 +0100
Date: 2010-03-04T06:37:56+01:00 [thread overview]
Message-ID: <hmngvk$bp5$00$1@news.t-online.com> (raw)
Referring back to
http://groups.google.com/group/comp.lang.ada/msg/c14a79f7d21f5ebf ,
On Mar 29 2002, 2:05 pm, Oliver Kellogg wrote:
> Sergey Koshcheyev <serk...@hotmail.com> wrote:
> > Just a quick idea - maybe using "is separate" in some right places
> > would solve it? Like having the spec of A.B.Impl inside A.B, and
> > having the body separate.
>
> That's definitely possible, but still only a workaround solution.
I have to correct myself. It's not so definitely possible:
-- file: a.ads
package A is -- module A
package B is -- interface B
package Impl is
procedure X;
end Impl;
end B;
end A;
-- file: a.adb
package body A is
package body B is
-- Implementation for interface B,
-- body to be provided by user
package body Impl is separate;
end B;
end A;
$ gcc -c a.adb
a.adb:6:07: stub cannot appear in an inner scope
next reply other threads:[~2010-03-04 5:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-04 5:37 Oliver Kellogg [this message]
2010-03-04 14:55 ` child packages and nested packages Admin - Do Not Email
2010-03-04 16:12 ` Adam Beneschan
-- strict thread matches above, loose matches on Subject: below --
2002-03-23 15:02 Oliver Kellogg
2002-03-25 15:01 ` 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox