assert semantic change proposal

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 7 02:29:43 PDT 2014


"Walter Bright"  wrote in message news:lrvglk$25dt$1 at digitalmars.com...

> Asserts in unittests are not the same as asserts elsewhere. I wasn't a big 
> fan of this, but I was probably the only one :-)

This has the fun side-effect that asserts in unittest helper functions are 
fatal, while ones in the unittest body are not!

And we've also got asserts in pre-conditions, which are recoverable by 
definition. 



More information about the Digitalmars-d mailing list