Our template emission strategy is broken

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 12 05:38:23 PST 2015


On 11/12/2015 01:15 AM, Walter Bright wrote:
>
> What D does need to do is support catching an std::exception*, or a
> class derived from std::exception. I believe we are on solid ground in
> not supporting any other C++ types being thrown.
>
> Nor do I believe we need to catch C++ objects with catch(...). Catching
> C++ objects will need an explicit catch(std.exception*).

I notice you use a star - did you back off from the idea of defining 
C++'s std::exception as an extern(C++) class (as opposed to an 
extern(C++) struct)? -- Andrei


More information about the Digitalmars-d mailing list