how to enable safeD ? dmd.conf ? dmd switch ?

Andrea Fontana nospam at example.org
Tue Jun 8 07:46:43 UTC 2021


On Tuesday, 8 June 2021 at 02:47:18 UTC, someone wrote:
> https://dlang.org/articles/safed.html
> https://dlang.org/dmd-linux.html#switches
> http://ddili.org/ders/d.en/functions_more.html
>
> Neither man dmd nor man dmd.conf appear to have a 
> related/switch setting.
>
> Does it means safeD is achieved by placing @safe attributes all 
> over the place ? Or is it achieved by setting some global 
> switch elsewhere ? Am I missing something ?

Just mark main() function with @safe and you're done.


More information about the Digitalmars-d-learn mailing list