From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: task model
Date: Sat, 17 Oct 2009 10:34:12 -0700
Date: 2009-10-17T10:34:12-07:00 [thread overview]
Message-ID: <hbcugm$nv8$1@news.tornevall.net> (raw)
In-Reply-To: <m2hbty8eer.fsf@hal.futureapps.de>
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
next prev parent reply other threads:[~2009-10-17 17:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-15 17:43 task model Mike
2009-10-15 18:00 ` Ludovic Brenta
2009-10-15 19:15 ` Anh Vo
2009-10-15 19:54 ` Dmitry A. Kazakov
2009-10-15 20:15 ` Jeffrey R. Carter
2009-10-16 14:06 ` Georg Bauhaus
2009-10-16 14:57 ` Brad Moore
2009-10-16 20:06 ` Jeffrey R. Carter
2009-10-17 11:10 ` Georg Bauhaus
2009-10-17 12:18 ` Dmitry A. Kazakov
2009-10-17 17:34 ` Jeffrey R. Carter [this message]
2009-10-19 7:56 ` Jean-Pierre Rosen
2009-10-15 19:55 ` sjw
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox