DIP60: @nogc attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 12:14:47 PDT 2014


On Tue, 15 Apr 2014 14:41:36 -0400, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> On Tue, 15 Apr 2014 13:01:40 -0400, Walter Bright  
> <newshound2 at digitalmars.com> wrote:
>
>> http://wiki.dlang.org/DIP60'
>
> Wow, that's quite underspecified.

What specifically is prevented? GC.malloc, GC.free, clearly. What about  
GC.getAttr? GC.query? These will not invoke collection cycles (the point  
of @nogc).

Actually, maybe just fullcollect is the root @nogc method...

In any case, more concrete details should be specified in the DIP.

-Steve


More information about the Digitalmars-d mailing list