in/out with -release
Kai Meyer
kai at unixlords.com
Fri Mar 4 20:14:32 PST 2011
I have an 'enforce' function call in an 'in' block for a function. When I
compile with "-release -O -inline", the in/out blocks appear to be skipped.
It's a simple verification for a dynamic array to not have a length of 0. In
debug mode, the test condition hits the enforce in the 'in' block, but in
release mode it does not. In both release and debug mode, the same exact
enforce function works properly.
So am I to understand that -release will skip in/out blocks entirely?
More information about the Digitalmars-d-learn
mailing list