From: evangeli <evangeli@cnam.fr>
Subject: Re: Entry family
Date: Thu, 21 Nov 2002 13:39:46 +0100
Date: 2002-11-21T11:35:02+00:00 [thread overview]
Message-ID: <3DDCD412.8050208@cnam.fr> (raw)
In-Reply-To: slrnatpgcd.4du.randhol+news@kiuk0152.chembio.ntnu.no
Preben Randhol wrote:
> Evangelista Sami wrote:
>
>>hello all
>>
>>what is the meaning of this code which compile well with gnat3.14
>>under linux:
>>---------------------------------------------
>>procedure Test_Index is
>> type Id is mod 10;
>> protected type Prot is
>> entry E (Boolean);
>> end Prot;
>> protected body Prot is
>> entry E (for I in Id) when True is
>>
> ^^^^^^^^^^^
> Won't this return Boolean?
>
>
and what about this?
---------------------------------------------
procedure test_index is
type Id is mod 10;
protected type Prot is
entry E (Id);
end Prot;
protected body Prot is
entry E (for B in Boolean) when True is
begin
null;
end;
end Prot;
P : Prot;
begin
P.E(8);
end;
---------------------------------------------
does "for b in boolean" return id?
next prev parent reply other threads:[~2002-11-21 12:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 11:18 Entry family Evangelista Sami
2002-11-21 11:21 ` Preben Randhol
2002-11-21 12:39 ` evangeli [this message]
2002-11-21 12:10 ` Preben Randhol
-- strict thread matches above, loose matches on Subject: below --
2002-11-21 12:14 Grein, Christoph
2002-11-21 14:18 ` evangeli
2002-11-22 1:30 ` Randy Brukardt
2002-11-22 10:39 ` Preben Randhol
2002-11-23 17:21 ` Simon Wright
2002-11-22 5:29 Grein, Christoph
2002-11-22 10:49 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox