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 X-Google-Thread: 103376,6d342d02d729296e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-21 04:10:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!feed.news.nacamar.de!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Entry family Date: Thu, 21 Nov 2002 12:10:41 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <5f59677c.0211210318.4f3ca382@posting.google.com> <3DDCD412.8050208@cnam.fr> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1037880641 20209 129.241.83.78 (21 Nov 2002 12:10:41 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 21 Nov 2002 12:10:41 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:31146 Date: 2002-11-21T12:10:41+00:00 List-Id: evangeli wrote: > 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? I'm not very familiar with entry families, but as I understand Barnes text book it gives this example: entry E (for P in Id) when Barrier_Condition(P) is begin -- do your thing end E; so when you write "when True" it will always do the code block. But I'm not sure, you better look up in your text book or wait for the gurus to clear it up :-) -- Preben Randhol ------------------------ http://www.pvv.org/~randhol/ -- �1984 is soon coming to a computer near you.�