New blog post featuring D

jmh530 john.michael.hall at gmail.com
Tue Jan 23 21:45:57 UTC 2024


On Tuesday, 23 January 2024 at 21:30:28 UTC, Walter Bright wrote:
> On 1/23/2024 1:58 AM, Patrick Schluter wrote:
>> You shouldn't advertise -release flag as long as it does 
>> "wrong thing"™ like removing array bound checking and 
>> assertions (it is contradictory to your normal memory safety 
>> stance).
>
> -release has not removed array bounds checking for about 17 
> years now :-)

The documentation says "Array bounds checking is not done for 
system and trusted functions, and assertion failures are 
undefined behaviour."

https://dlang.org/dmd-windows.html#switch-release


More information about the Digitalmars-d mailing list