std library hooks

Walter Bright newshound2 at digitalmars.com
Fri Apr 13 19:45:06 PDT 2012


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.


More information about the Digitalmars-d mailing list