Catching C++ Exceptions in D
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 5 15:56:01 PST 2016
On 1/5/2016 2:58 PM, Elie Morisse wrote:
> On Tuesday, 5 January 2016 at 20:07:11 UTC, Walter Bright wrote:
>> On 1/5/2016 10:51 AM, Elie Morisse wrote:
>>> why not distinguish C++ exceptions from D ones in the personality routine?
>>
>> How?
>
> Are you aware of
> https://syniurgeblog.wordpress.com/2015/11/20/calypso-catching-cpp-exceptions-in-d/?
No, thanks for pointing it out. Your solution is clever. I'll have to think
about which method is better.
Also,
catch (C++)(ref exception e)
the (C++) seems redundant. The compiler can look at the type of e, and determine
if it is C++ or not.
More information about the Digitalmars-d
mailing list