comp.lang.ada
 help / color / mirror / Atom feed
From: evangeli@cnam.fr (Evangelista Sami)
Subject: Entry family
Date: 21 Nov 2002 03:18:37 -0800
Date: 2002-11-21T11:18:37+00:00	[thread overview]
Message-ID: <5f59677c.0211210318.4f3ca382@posting.google.com> (raw)

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
       begin
          null;
       end;
   end Prot;
   P : Prot;
begin
   P.E(True);
end;
---------------------------------------------why can i declare the
index entry of E as Boolean in the spec and as Id in the body?
Perhaps i didnt understand something about entry index

Thanks for any response



             reply	other threads:[~2002-11-21 11:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21 11:18 Evangelista Sami [this message]
2002-11-21 11:21 ` Entry family Preben Randhol
2002-11-21 12:39   ` evangeli
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