Why no contracts for release build?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 4 23:59:48 PDT 2014


On Tuesday, 3 June 2014 at 14:29:19 UTC, Andre wrote:
> Hi,
> I currently think about whether or not contracts should be 
> available
> in release builds.

Use release build only if you proved the code is 100% correct. 
It's hardly useful in realistic scenarios. See the recently 
reported buffer overflow bug in druntime which would be otherwise 
caught twice by asserts: 
https://issues.dlang.org/show_bug.cgi?id=12848


More information about the Digitalmars-d mailing list