-preview=safer for D

Walter Bright newshound2 at digitalmars.com
Sun Dec 15 01:46:33 UTC 2024


On 12/14/2024 4:04 PM, Jonathan M Davis wrote:
> As such, if we're going to change the default, I would strongly argue that
> we just make @safe the default and not the flag.

Oh, we've tried that. It does not work. Here's the problem:

DMD has an essentially recursive nature. Every function is transitively 
reachable by every other function. Not 100% true, but true enough.

Enough of the code also does unsafe things like use C strings to make it just 
plain frustrating to try and make @safe any significant portion of it.



More information about the Digitalmars-d mailing list