The non allocating D subset

Simen Kjaeraas simen.kjaras at gmail.com
Sun Jun 9 01:15:24 PDT 2013


On Sat, 08 Jun 2013 19:14:25 +0200, Tyler Jameson Little  
<beatgammit at gmail.com> wrote:

> 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?

The implementation. I've filed a bug for the documentation:
http://d.puremagic.com/issues/show_bug.cgi?id=10297

-- 
Simen


More information about the Digitalmars-d mailing list