From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: How could I name it ?
Date: 1998/11/09
Date: 1998-11-09T00:00:00+00:00 [thread overview]
Message-ID: <3646FFE8.BAF539BD@elca-matrix.ch> (raw)
In-Reply-To: 3645C3C4.2A05@club-internet.fr
"Fran�oise & Herv� BITTEUR" wrote:
> procedure Test is
> type T;
> type T_Ptr is access T;
> task type T is
> entry Point (Ptr : in T_Ptr);
> end T;
> task body T is
> Ptr : T_Ptr;
> My_Ptr : T_Ptr;
> begin
> accept Point
> (Ptr : in T_Ptr)
> do
> --Ptr := Ptr; -- not OK, of course
> My_Ptr := Ptr; -- OK, but I don't like it !
>
> T.Ptr := Ptr; -- not OK
This is OK. GNAT had a bug that rejected it, I am not sure if it is
fixed in 3.10p.
> T.My_Ptr := Ptr; -- not OK
This is legal as well.
> Test.T.Ptr := Ptr; -- not OK
> Test.T.My_Ptr := Ptr; -- not OK
The above two are also legal.
> end Point;
> end T;
> begin
> null;
> end Test;e
prev parent reply other threads:[~1998-11-09 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-08 0:00 How could I name it ? Fran�oise & Herv� BITTEUR
1998-11-09 0:00 ` Stephen Leake
1998-11-09 0:00 ` Mats Weber [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