On Saturday, 14 April 2012 at 02:46:03 UTC, Walter Bright wrote:
On 4/13/2012 5:14 PM, Francois Chabot wrote:
On Friday, 13 April 2012 at 21:29:37 UTC, Walter Bright wrote:
On 4/13/2012 4:07 AM, Timon Gehr wrote:
http://dlang.org/phobos/core_exception.html
deprecated void setAssertHandler(errorHandlerType h);

Why is it deprecated?

Never found a use for it.

All I want, and I can guarantee that this is what Manu wants as well, is the ability to squeeze an asm { int 3; } or equivalent so that I can drop into my debugger at the point of assertion failure before the stack unwinds.

all assert(exp) does when it trips is call a function in the library. If you provide your own version of that function, the one in the library won't be linked in.

Unless exp is an object instance. Then it contacts Satan first before calling the function. :P


Reply via email to