It would be hard to write a framework around D unit tests, for instance, where you need to catch AssertErrors if things weren't cleaned up properly (or if it just called abort()). That's just the first thing that comes to mind.
Regards, Alex
I completely agree. That's what I've been discussion in the "learn" newsgroup. I had a look through the source code of druntime and found
"onAssertError". I don't know if it's used or not but sounds exactly
like the function I need. But unfortunately the function to set the
assert handler is deprecated.