how to enable safeD ? dmd.conf ? dmd switch ?
Jack
jckj33 at gmail.com
Tue Jun 8 03:54:47 UTC 2021
On Tuesday, 8 June 2021 at 03:32:31 UTC, someone wrote:
> On Tuesday, 8 June 2021 at 02:59:28 UTC, rikki cattermole wrote:
>
>> SafeD is an old name given to the attributes @safe @trusted
>> @system.
>
> I have the Alexandrescu's book on hand so that explains it.
>
>> There is no switch nor any special behavior now that it has
>> long been added to mainline D.
>
> So DMD now enforces it by default ? Will it complain if I make
> something out of the ordinary then ?
better read carefully how the attribute work, if you need
aditional switches or anything,
for example, if you want to use return scope parameter and make
the compiler give a compiler error if you set this parameter to a
variable outside the function's scope, you have to use -dip25
-dip1000 switches
More information about the Digitalmars-d-learn
mailing list