From: evangeli <evangeli@cnam.fr>
Subject: Re: Entry family
Date: Thu, 21 Nov 2002 15:18:35 +0100
Date: 2002-11-21T13:13:52+00:00 [thread overview]
Message-ID: <3DDCEB3B.7070506@cnam.fr> (raw)
In-Reply-To: mailman.1037881262.11379.comp.lang.ada@ada.eu.org
Grein, Christoph wrote:
>>---------------------------------------------
>>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
>> begin
>> null;
>> end;
>> end Prot;
>> P : Prot;
>>begin
>> P.E(True);
>>end;
>>
>
> To me, this looks like a fat compiler bug. The entry body shouod be
>
> entry E (for I in Boolean) when True is
>
> Report it to ACT (report@gnat.com).
>
it seems that conversion is made at the run time:
example :
--------------------------------------------------
procedure test_index is
type Id is mod 5;
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
-- OK : 0 -> FALSE
P.E(0);
-- OK : 1 -> TRUE
P.E(1);
-- CRASHES
P.E(2);
end;
--------------------------------------------------
next prev parent reply other threads:[~2002-11-21 14:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 12:14 Entry family Grein, Christoph
2002-11-21 14:18 ` evangeli [this message]
2002-11-22 1:30 ` Randy Brukardt
2002-11-22 10:39 ` Preben Randhol
2002-11-23 17:21 ` Simon Wright
-- strict thread matches above, loose matches on Subject: below --
2002-11-22 10:49 Grein, Christoph
2002-11-22 5:29 Grein, Christoph
2002-11-21 11:18 Evangelista Sami
2002-11-21 11:21 ` Preben Randhol
2002-11-21 12:39 ` evangeli
2002-11-21 12:10 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox