D not considered memory safe

Brian Callahan bcallah at openbsd.org
Tue Jul 9 22:15:22 UTC 2024


On Tuesday, 9 July 2024 at 14:25:06 UTC, Lance Bachmeier wrote:
> On Tuesday, 9 July 2024 at 11:54:31 UTC, Brian Callahan wrote:
>> On Monday, 8 July 2024 at 14:37:52 UTC, bachmeier wrote:
>>> Whereas safe by default is already available with a switch.
>>
>> What is the switch for that?
>
> Walter added -preview=safedefault when he started working on 
> this. I haven't paid attention to it, so I don't know if it's 
> still there, but there was such a switch: 
> https://github.com/dlang/DIPs/blob/1b705f8d4faa095d6d9e3a1b81d6cfa6d688554b/DIPs/DIP1028.md#description

Sadly with DMD v2.109.0:
Error: preview `-preview=safedefault` is invalid

~Brian


More information about the Digitalmars-d mailing list