@safe by default

Jacob Shtokolov jacob.100205 at gmail.com
Sat Jun 16 14:02:36 UTC 2018


On Saturday, 16 June 2018 at 13:57:48 UTC, Bastiaan Veelo wrote:
> On Saturday, 16 June 2018 at 13:52:37 UTC, Jacob Shtokolov 
> wrote:
>> Is it possible to introduce a new parameter/flag to the 
>> compiler, to force all functions be @safe by default on a 
>> per-module basis?
>>
>> For example:
>>
>> ```
>> module mymodule;
>>
>> pragma(safe);
>
> We already have that, and with even shorter syntax:
>
> ```
> module mymodule;
>
> @safe:
>
> [...]
> ```
>
> :-)

OMG! Didn't know that! xD

Thank you Bastiaan!


More information about the Digitalmars-d mailing list