On Sat, 08 Jun 2013 04:09:25 +0200, Tyler Jameson Little <[email protected]> wrote:

What is the -safe option? I don't see it in DMD help.

@safe is specified without @nogc, but calling function is @nogc, so I think that #1 should be chosen.

I pulled that from here: http://dlang.org/memory-safe-d.html

Maybe that's out of date?

Would seem so. Safe D is activated with @safe, and the compiler switch
-safe gives an error message from the compiler.

If you want your entire module to be @safe, insert @safe: at the top of
the module.

--
Simen

Reply via email to