@safe by default and old code

Patrick Schluter Patrick.Schluter at bbox.fr
Fri Aug 6 05:48:04 UTC 2021


On Friday, 6 August 2021 at 00:30:36 UTC, Kirill wrote:
> I've heard that there are plans to make D `@safe by default`.
>
> Then the question that pops into my head is what will happen to 
> all the code that was written before it and once it is 
> implemented?
>
> Will it require a rewrite?
>
> How should the code be written from now on to avoid this?

Even if it is implemented one day, there will be a command line 
option in the compiler to disable it exactly for the reason you 
brought up.


More information about the Digitalmars-d mailing list