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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b417df64012e6d3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-17 09:01:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cesnet.cz!crax.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: tasks, protected types and entries Date: Sun, 17 Mar 2002 17:49:36 +0100 Organization: Czech Technical University Message-ID: References: <%12l8.9656$%_6.1717935@news11-gui.server.ntli.net> <562l8.9685$%_6.1720374@news11-gui.server.ntli.net> <3C94BA62.3050102@worldnet.att.net> NNTP-Posting-Host: m232.dkm.cz X-Trace: ns.felk.cvut.cz 1016383772 38545 62.24.78.232 (17 Mar 2002 16:49:32 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Sun, 17 Mar 2002 16:49:32 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:21372 Date: 2002-03-17T17:49:36+01:00 List-Id: "Jim Rogers" wrote in message news:3C94BA62.3050102@worldnet.att.net... > To quote from "Ada as a Second Language" page 860: > > "A guard is a construct of the form > when condition => > that may precede some or all the alternatives of a selective accept. > A guard has the same form as a barrier in a protected-type entry > body (..) and plays a similar role." > > In short, yes, an entry barrier on a protected object does limit > access to the protected object. A guard on a task's selective > accept provides conditions for completion of a rendezvous. By the way, what is the difference between a procedure X and an "entry X when True" in a protected object? I remember that the "entry when True" was used once in John Barnes' book, but I couldn't find an explanation of the difference. Sergey.