Isn't that the declaration of an object ("X"), and its assignment?
If anything, simply altering it to "X : Sep:= New Sep;" would be the
correct alteration, no?

On Sun, Mar 2, 2025 at 3:50 AM Ada-comment for Pascal <
[email protected]> wrote:

> Hello,
>
> In Ada 202y draft 2, chapter 3.10.1 Incomplete Type Declarations:
> 23.e            package body Pack is -- Could be separately compiled!
>                     type Sep is ...;
>                     X := new Sep;
>                 end Pack;
>
> should be:
>       package body Pack is -- Could be separately compiled!
>          type Sep is access Date;
>          --  X := new Sep; -- NOTE: error: statement not allowed in
> declarative part
>       begin
>          X := new Sep;
>       end Pack;
>
> or something alike?
>
> Regards, Pascal.
>
>
>
> ________________________________________________________
>
> You have received this message because you subscribed to the Ada-Comment
> mailing list. To leave the Ada-Comment list, send an email with
> 'leave Ada-Comment' in the body to [email protected]. For help
> on the other commands available, send 'help Ada-Comment' to the same
> address.
> Problems? Send mail to [email protected]. This list is operated by the
> Ada Resource Association, Inc., PO Box 8685, New York NY 10116-8685.
>
>
>
>
>

Reply via email to