Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Discriminan...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 5610 of 5828
Post > Topic >>

Re: Discriminant ans tagged type ?!

by Robert A Duff <bobduff@[EMAIL PROTECTED] > Mar 18, 2008 at 02:40 PM

Tony <truand.tony@[EMAIL PROTECTED]
> 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
 




 9 Posts in Topic:
Discriminant ans tagged type ?!
Tony <truand.tony@[EMA  2008-03-18 16:22:36 
Re: Discriminant ans tagged type ?!
Adam Beneschan <adam@[  2008-03-18 08:54:53 
Re: Discriminant ans tagged type ?!
Adam Beneschan <adam@[  2008-03-18 12:54:03 
Re: Discriminant ans tagged type ?!
Tony <truand.tony@[EMA  2008-03-21 01:18:58 
Re: Discriminant ans tagged type ?!
Adam Beneschan <adam@[  2008-03-21 08:25:38 
Re: Discriminant ans tagged type ?!
Simon Wright <simon.j.  2008-03-21 16:46:43 
Re: Discriminant ans tagged type ?!
Tony <truand.tony@[EMA  2008-03-22 02:05:04 
Re: Discriminant ans tagged type ?!
"Tom Grosman" &  2008-04-04 17:40:37 
Re: Discriminant ans tagged type ?!
Robert A Duff <bobduff  2008-03-18 14:40:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:50:49 CDT 2008.