D not considered memory safe

Quirin Schroll qs.il.paperinik at gmail.com
Mon Jul 22 15:39:47 UTC 2024


On Saturday, 13 July 2024 at 19:27:02 UTC, Walter Bright wrote:
> On 7/13/2024 6:09 AM, Timon Gehr wrote:
>> OpenD has an interesting approach towards default safety. They 
>> enabled a large fraction of safety checks in functions without 
>> a safety annotation. To disable them, explicit @system is 
>> required. This way you get linting benefits even without 
>> already ensuring full memory safety guarantees.
>
> It's an interesting approach, but certainly half-baked. How 
> does one decide which safety checks are to be included?

I’d bet all it’s of them except the one telling you that you 
can’t call a `@system` function from a `@safe` function.



More information about the Digitalmars-d mailing list