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

jmh530 john.michael.hall at gmail.com
Thu Jan 2 13:49:43 UTC 2020


On Thursday, 2 January 2020 at 12:34:05 UTC, bachmeier wrote:
> [snip]
>
> What compiler do you use? I always get error messages when I 
> try to call @system functions from @safe code.
> [snip]

Nothing prevents you from going function by function to verify if 
you can make things @trusted or @safe. It would be a big time 
commitment for legacy code, of course.

Or, you can just make main @system as well.

I think what you are really trying to say is more about 
interacting between legacy code that was @system by default and 
new code that is @safe by default. But @system code can call 
@safe code without any problem. So maybe just write the new code 
as you please, but then make main @system? There is value in this 
point. I think most people think it will be quite disruptive.


More information about the Digitalmars-d mailing list