On Monday, 16 November 2015 at 19:35:58 UTC, Andrei Alexandrescu wrote:
That's great progress. Do you have documentation for how things work? For example, what's the lifetime of the pointer people will get from std::exception::what().

IMHO: don't worry about catching exceptions by value; it's almost always either incorrect, uninteresting, or both. The prize is catching (references to) classes rooted in std::exception. Nice-to-have is catching (references to) classes rooted in other C++ classes.

A blog post would be fantastic.


Andrei

Finally there: https://syniurgeblog.wordpress.com/2015/11/20/catching-cpp-exceptions-in-d/

Although a little late and probably less user-oriented than you wanted?

For example, what's the lifetime of the pointer people will get from std::exception::what().

The exception object gets destroyed on exiting the catch (C++) block if the exception isn't rethrown.

Reply via email to