Thoughts about D
Walter Bright
newshound2 at digitalmars.com
Fri Dec 1 11:01:13 UTC 2017
On 12/1/2017 2:57 AM, Walter Bright wrote:
> On 11/30/2017 7:43 PM, Adam D. Ruppe wrote:
>> I never, never use -release since it implies no bounds checking.
>
> This is incorrect. -release leaves bounds checking on.
Correction:
https://dlang.org/dmd-windows.html#switch-release
"compile release version, which means not emitting run-time checks for contracts
and asserts. Array bounds checking is not done for system and trusted functions,
and assertion failures are undefined behaviour."
More information about the Digitalmars-d
mailing list