Program logic bugs vs input/environmental errors
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 14 20:03:17 PDT 2014
On Saturday, 11 October 2014 at 22:06:38 UTC, Walter Bright wrote:
> All assert actually does is call a function in druntime. You
> can override and insert your own assert handling function, and
> have it do as you need. It was deliberately designed that way.
A while ago I have been a looking for a way to throw Exception
instead of Error for failing assertions inside unittest blocks
but druntime didn't seem to provide needed context. Do you think
this can be a worthy addition?
More information about the Digitalmars-d
mailing list