RFC: reference counted Throwable
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 21 08:08:03 PDT 2014
On Saturday, 20 September 2014 at 16:50:08 UTC, Andrei
Alexandrescu wrote:
> On 9/20/14, 7:33 AM, Dicebot wrote:
>> On Saturday, 20 September 2014 at 14:31:36 UTC, Adam D. Ruppe
>> wrote:
>>> How often do you store an exception reference anyway that
>>> escapes a
>>> catch block? I think all this talk is overkill to solve a
>>> non-problem
>>> in 99% of practice.
>>
>> Pretty much any time you do fibers + async I/O : to emulate
>> blocking API
>> one needs to catch and store exceptions from I/O routines so
>> that later
>> those can be re-thrown from resumed fiber context.
>
> Interesting. Are those stored as Object or Throwable/Exception?
> -- Andrei
I'd expect Throwable. Erasing it to Object smells like a trouble
for no good. Don't know how Sonke has implemented in vibe.d
though.
More information about the Digitalmars-d
mailing list