Catching C++ Exceptions in D

Jakob Ovrum via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 5 13:37:33 PST 2016


On Tuesday, 5 January 2016 at 21:30:21 UTC, Jakob Ovrum wrote:
> On Tuesday, 5 January 2016 at 17:23:38 UTC, Walter Bright wrote:
>> At the exit of a catch clause, the destructor on the caught 
>> C++ exception will be run, as would be expected by C++ 
>> programmers.
>
> Does this work with rethrow? What if a D exception is thrown 
> from a C++ catch block - will the C++ exception still be 
> destroyed properly?

To clarify, I mean a catch block in D code that catches as C++ 
exception.


More information about the Digitalmars-d mailing list