The non allocating D subset
Tyler Jameson Little
beatgammit at gmail.com
Sat Jun 8 10:14:25 PDT 2013
On Saturday, 8 June 2013 at 07:10:29 UTC, Simen Kjaeraas wrote:
> 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.
Then the documentation should be changed, or the feature
implemented. I've never had cause to use it, so I never got
around to checking it.
Which is correct, the documentation or the implementation?
More information about the Digitalmars-d
mailing list