New blog post featuring D

Walter Bright newshound2 at digitalmars.com
Wed Jan 24 15:58:31 UTC 2024


On 1/23/2024 1:45 PM, jmh530 wrote:
> 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

You're right. It is not removed from @safe code.


More information about the Digitalmars-d mailing list