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,3834afba374f4cfd,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-04 22:21:14 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsone.net!newsone.net!not-for-mail From: adam@irvine.com Newsgroups: comp.lang.ada Subject: Requeue and IN OUT parameters Followup-To: comp.lang.ada Date: 4 May 2001 20:28:57 GMT Organization: NewsOne.Net - Free Usenet News via the Web - http://newsone.net/ Message-ID: <9cv3e9$gul$1@news.netmar.com> NNTP-Posting-Host: news.netmar.com X-Trace: news.netmar.com 989008137 17365 205.139.138.14 (4 May 2001 20:28:57 GMT) X-Complaints-To: abuse@newsone.net NNTP-Posting-Date: 4 May 2001 20:28:57 GMT X-PNG: comp.lang.ada X-NewsOnePostHost: larry-rp.irvine.com X-NewsOnePostAddr: 63.206.153.98 Xref: newsfeed.google.com comp.lang.ada:7193 Date: 2001-05-04T20:28:57+00:00 List-Id: I have a couple more questions about protected objects. Here's the first question; the second will be in a separate post. 9.5.4(11) says that if an entry body completes other than by a requeue, the program returns to the caller and any copy-back of parameters occurs. What happens to the parameters if the entry body does a requeue? In this example: protected PR is entry E1 (Count : in out integer); entry E2 (Count : in out integer); end PR; protected body PR is entry E1 (Count : in out integer) when Some_Condition is begin if Blah_Blah_Blah then Count := Count + 1; requeue E2; end if; Do_A_Bunch_Of_Other_Stuff; end E1; . . . In this example, does the effect of the statement "Count := Count + 1" become lost? Is the value E2 sees the original value of Count, the incremented value, or implementation-dependent? (Actually, I believe this question is pertinent to task entries also.) -- thanks, Adam ----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web ----- http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups NewsOne.Net prohibits users from posting spam. If this or other posts made through NewsOne.Net violate posting guidelines, email abuse@newsone.net