Any libunwind experts n da house?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 24 15:14:53 PDT 2014


On 9/24/14, 2:53 PM, IgorStepanov wrote:
>
> I have one freaky example for you. This example can be
> non-standart and danger but it works:
> C++ side: http://pastebin.ru/PceYCOEq
> special function catch exception, pass it to specified handler
> and re-throw, if handler not found
>
> D side: http://pastebin.ru/7FNBzXHw
> D defines a special handler and pass it to catchException
> result:
> D code call C++ function
>
> void throwEx(void *)
> {
>       throw 4;
> }
> and prints:
> dside.CPPException!int.CPPException@(0): 4
>
> Doesn't fire to me, please :)

Awesome! How do we make it standard and safe? -- Andrei


More information about the Digitalmars-d mailing list