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

Walter Bright newshound2 at digitalmars.com
Fri Jan 3 11:12:19 UTC 2020

On 1/2/2020 6:11 PM, Timon Gehr wrote:
> 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.

Ah, you're right for template code.

More information about the Digitalmars-d mailing list