Any libunwind experts n da house?
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 24 13:11:00 PDT 2014
On Wednesday, 24 September 2014 at 19:28:50 UTC, Andrei
Alexandrescu wrote:
>> However, for sure, the easiest thing that could be done *now*
>> that
>> only needs a slight EH library tweak is using catch-all
>> handlers to
>> recover from any language exception.
>>
>> try {
>> SomeCxxFuncThatMayThrow();
>> }
>> catch {
>> // Recover, but without knowing what happened.
>> }
>>
>> But I'd imagine you'd actually want information to come with
>> your
>> caught exception, though. :)
>
> Well even a catch like that would definitely be an improvement.
>
Considered it for SDC. it is not that simple as if it is a C++
exception, you need to do the same cleanup of the exception that
the C++ runtime would do, which is not that simple.
More information about the Digitalmars-d
mailing list