Catching C++ std::exception in D

krzaq via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 11 23:48:55 PST 2015


On Thursday, 12 November 2015 at 07:47:16 UTC, Kagamin wrote:
> On Thursday, 12 November 2015 at 07:00:43 UTC, krzaq wrote:
>> What about rethrowing C++ exceptions? Are we going to use 
>> pointer notation for C++ exceptions? This may be the same 
>> under the hood, but looks way different.
>
> std::exception is class, i.e. reference type, so you won't be 
> able to throw or catch it by value in D anyway.

Sure, but it's idiomatic to catch by reference, hence the 
question.


More information about the Digitalmars-d mailing list