From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6d342d02d729296e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-21 03:39:58 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!freenix!jussieu.fr!cnam.fr!not-for-mail From: evangeli Newsgroups: comp.lang.ada Subject: Re: Entry family Date: Thu, 21 Nov 2002 13:39:46 +0100 Organization: Conservatoire National des Arts et Metiers Message-ID: <3DDCD412.8050208@cnam.fr> References: <5f59677c.0211210318.4f3ca382@posting.google.com> NNTP-Posting-Host: lmi14.cnam.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: kelvin.cnam.fr 1037878502 2024 163.173.228.14 (21 Nov 2002 11:35:02 GMT) X-Complaints-To: usenet@news.cnam.fr NNTP-Posting-Date: 21 Nov 2002 11:35:02 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:31144 Date: 2002-11-21T11:35:02+00:00 List-Id: 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?