From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Discriminant ans tagged type ?!
Date: Tue, 18 Mar 2008 14:40:29 -0400
Date: 2008-03-18T14:40:29-04:00 [thread overview]
Message-ID: <wcc3aqng9k2.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 47dfde3d$0$26828$426a74cc@news.free.fr
Tony <truand.tony@gmail.com> writes:
> I just do not understand why the following code compiles with the Aonix
> compiler and not with the Gnat GPL 2007?
>
> package A_Pkg is
> type A (L : Natural) is tagged null record;
> end A_Pkg;
>
> package A_Pkg.B_Pkg is
> type B is new A with record
> T : String(1..L);
> end record;
> end A_Pkg.B_Pkg;
>
> with A_Pkg.B_Pkg;
> procedure Strange is
> begin
> null;
> end Strange;
>
> => RM95 3.7 (18) ??
There's 3.9.1(8), which is a NOTE.
If you want to do the above, you can say:
type B (L : Natural) is new A(L) with ...
- Bob
prev parent reply other threads:[~2008-03-18 18:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 15:22 Discriminant ans tagged type ?! Tony
2008-03-18 15:54 ` Adam Beneschan
2008-03-18 19:54 ` Adam Beneschan
2008-03-21 8:18 ` Tony
2008-03-21 15:25 ` Adam Beneschan
2008-03-21 16:46 ` Simon Wright
2008-03-22 9:05 ` Tony
2008-04-04 15:40 ` Tom Grosman
2008-03-18 18:40 ` Robert A Duff [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox