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

Timon Gehr timon.gehr at gmx.ch
Fri Jan 3 02:11:04 UTC 2020


On 03.01.20 02:31, Walter Bright wrote:
> On 1/2/2020 9:27 AM, Arine wrote:
>> If you could annotate the module with @system to use the old behavior, 
>> this will ease the transition period. This is better than simply 
>> having a compiler flag that changes behavior, as you can see in the 
>> code that is using the old behavior. You can also disable it per 
>> module, not either on or off for everything.
>>
>>      @system module std.stdio; // or similar
> 
> We already have that in starting a module with:
> 
>      @system:
> 

This will not result in the old behavior. It will disable inference of 
@safe in that module.


More information about the Digitalmars-d mailing list