The non allocating D subset

Simen Kjaeraas simen.kjaras at gmail.com
Sat Jun 8 00:10:02 PDT 2013


On Sat, 08 Jun 2013 04:09:25 +0200, Tyler Jameson Little  
<beatgammit at gmail.com> 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


More information about the Digitalmars-d mailing list