comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@adaos.worldonline.co.uk>
Subject: Re: Inner generic package derivation
Date: Fri, 16 Nov 2001 01:54:28 -0000
Date: 2001-11-16T01:54:28+00:00	[thread overview]
Message-ID: <9t1rhi$165feh$1@ID-25716.news.dfncis.de> (raw)
In-Reply-To: tv8nulpg5eni2c@corp.supernews.com

Thanks, Matt.

However, I also want to know: (a) exactly what combination of rules in the
RM95 enforce it; (b) why.

--
Best wishes,
Nick Roberts



"Matthew Heaney" <mheaney@on2.com> wrote in message
news:tv8nulpg5eni2c@corp.supernews.com...
>
> "Nick Roberts" <nickroberts@adaos.worldonline.co.uk> wrote in message
> news:9t1lp3$16unne$2@ID-25716.news.dfncis.de...
> >    premature derivation of derived or private type
> >
> > Is this a bug in: (a) GNAT; (b) the RM95; or (c) my brain?
>
> No, this is not a bug.  You can't declare the full view of type U until
> after the declaration of the full view of type T.
>
> That's why this is legal:
>
> package P is
>    type T is tagged private;
>    type NT is new T with private;
> private
>    type T is tagged null record;
>    type NT is new T with null record;
> end;
>
> and this is not legal:
>
> package P is
>    type T is tagged private;
>    type NT is new T with null record;
> private
>    type T is tagged null record;
> end;






  reply	other threads:[~2001-11-16  1:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-16  0:00 Inner generic package derivation Nick Roberts
2001-11-16  0:41 ` Matthew Heaney
2001-11-16  1:54   ` Nick Roberts [this message]
2001-11-16  3:06 ` Mark Lundquist
replies disabled

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