Detecting exception unwinding
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 4 02:03:13 PST 2016
On Wednesday, February 03, 2016 23:55:42 Ali Çehreli via Digitalmars-d-learn wrote:
> std::uncaught_exception used to be considered useless:
I think that the only case I've ever had for it was for a unit testing
framework where I wanted to use RAII to print something when the tests
failed (and thus an exception was thrown) but not print if they succeeded,
and if I were to do that in D, I'd just use scope(failure).
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list