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-Thread: 103376,1901f265c928a511 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 26 Jun 2004 09:57:42 -0500 Date: Sat, 26 Jun 2004 10:57:42 -0400 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: new revision ada References: <40BDBBFA.2020203@noplace.com> <1087475285.166449@master.nyc.kbcfp.com> <2jlepqF12qbb6U1@uni-berlin.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.90.114 X-Trace: sv3-zWuYK/BCUrGf6/XsJLto4DCaO5yl88b+xS5cPwVLO898PQwbjtt3w+PQ8fbqUw+vsCpTZxltzGaL2c2!BQ0aDcaA8qohfUzQpCduXq7feyYr62tFNbfjWLCavjJVRDmeiufOnULUwwJvqA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: g2news1.google.com comp.lang.ada:1921 Date: 2004-06-26T10:57:42-04:00 List-Id: James Rogers wrote: > Your solution detaches the information from the notification. > This detachment causes problems, which are compounded by > concurrency. If two exceptions are raised in a program and > their state information is stored in some buffer such as > a protected object, how will a handler determine which state > belongs to which exception occurrence? The simple answer is to make the buffer used to store the information a per task object. The two complicated cases are exceptions in accept statements where you might need to create two copies of the information, and when an exception is raised in an exception handler. If you want to "deal with" the second case, the per task data needs to be a stack or linked list. -- Robert I. Eachus "Reason and experience both forbid us to expect that national morality can prevail in exclusion of religious principles." -- George Washington