assert(false) in release == splinter in eye

Sean Kelly sean at invisibleduck.org
Mon Oct 11 07:31:54 PDT 2010


Christopher Bergqvist Wrote:

> Hi,
> 
> Time for some Sunday nitpicking. While reading TDPL, one thing that stuck
> out to me was the special behavior of assert(false). Consider the following
> program compiled with "-release".

-release is misnamed.  It should be -unsafe or -unchecked or something like that.  Range checking for arrays is also disabled, as are contracts.  These are all things that some people actually want turned on in "released" software.


More information about the Digitalmars-d mailing list