Catching C++ std::exception in D

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 12 01:36:19 PST 2015


On 11/12/2015 12:57 AM, Iain Buclaw via Digitalmars-d wrote:
> I don't mind the compiler-specific personality,

gdc has one, __gcd_personality_v0. I don't see a way out of not having one.

> but a new throw function?  I
> guess I should count my lucky stars that I'm still using the original _d_throw
> callback.

It only has a different name. Not a different API.


> In the EH table, I guess you will have to generate an
> extern reference to C++'s typeinfo object somehow...

That shouldn't be difficult.



More information about the Digitalmars-d mailing list