<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>On 12 mar 2012, at 21:06, Alex wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>It would be hard to write a framework around D unit tests, for<br>instance, where you need to catch AssertErrors if things weren't<br>cleaned up properly (or if it just called abort()). That's just the<br>first thing that comes to mind.<br><br>Regards,<br>Alex<br><br></div></blockquote></div><div><br></div><div>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. </div>
<br><a class="moz-txt-link-freetext" href="http://dlang.org/phobos/core_exception.html#onAssertError">http://dlang.org/phobos/core_exception.html#onAssertError</a><br><a class="moz-txt-link-freetext" href="http://dlang.org/phobos/core_exception.html#setAssertHandler">http://dlang.org/phobos/core_exception.html#setAssertHandler</a><div><br><div apple-content-edited="true">
-- <br>/Jacob Carlborg
</div>
<br></div></body></html>