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-Thread: a07f3367d7,5cc10500d0b7a280 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!weretis.net!feeder2.news.weretis.net!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: task model Date: Sat, 17 Oct 2009 10:34:12 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <04458a0b-1e58-478b-a2f0-c47226f840ac@f16g2000yqm.googlegroups.com> <6b6bd661-06b0-4ef6-8d48-0ef97d55fdd4@f20g2000prn.googlegroups.com> NNTP-Posting-Host: deb6f93519e1b99ba79c4690e6d34e56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: b417b73f392fff07595c68a8c5439761 X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-Validate-Post: http://news.tornevall.net/validate.php?trace=b417b73f392fff07595c68a8c5439761 X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Posting-User: 9b22bfe2855937f9b3faeec7cfc91295 Xref: g2news2.google.com comp.lang.ada:8716 Date: 2009-10-17T10:34:12-07:00 List-Id: Georg Bauhaus wrote: >> >> What's the point of re-raising? Exceptions don't propagate from tasks. > > Uhm, I forgot to mention that a handler at some nesting level > might be reporting, permitting more accurate diagnostic messages. > It could then decide there is or is not a possible rescue, > and accordingly re-raise, for example. Not an exception handler for the task, then, but for a declare statement within the task. In that case, a re-raise might be useful. However, the primary use I have had for such a structure is to enclose an accept statement, allowing an explicitly raised exception to propagate from the accept to the caller, while being handled and ignored in the called task. -- Jeff Carter "You've got the brain of a four-year-old boy, and I bet he was glad to get rid of it." Horse Feathers 47