Catching C++ Exceptions in D

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


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?



More information about the Digitalmars-d mailing list