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

Ogi ogion.art at gmail.com
Sun Jan 12 13:02:10 UTC 2020


On Sunday, 12 January 2020 at 12:28:23 UTC, berni44 wrote:
> With @safe being the default, a typical hello-world-program 
> would need @system. I don't like this.

writeln is @safe as long as you use it with safe arguments.

import std.stdio;
@safe:
void main() {
     writeln("Hello, world!");
}

Compiles without errors.


More information about the Digitalmars-d mailing list