DIP 1028---Make @safe the Default---Community Review Round 1

bachmeier no at spam.net
Thu Jan 2 12:34:05 UTC 2020


On Thursday, 2 January 2020 at 12:23:54 UTC, ag0aep6g wrote:

> Yes, you shouldn't blindly slap @trusted on your non- at safe 
> functions.
>
> But you *can* blindly slap @system on them. Non-annotated 
> functions are already @system by default; you're just making it 
> explicit. Your code should compile the same as today.

What compiler do you use? I always get error messages when I try 
to call @system functions from @safe code.

> And legacy code should be treated as @system, not as @trusted.

Perfectly working legacy code should by default stop compiling?


More information about the Digitalmars-d mailing list