DIP60: @nogc attribute
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 15 12:47:58 PDT 2014
On 4/15/2014 12:14 PM, Steven Schveighoffer wrote:
> 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).
All functions not marked as @nogc cannot be called from a @nogc function.
GC.malloc(), etc., are functions.
It works very much analogously to nothrow.
More information about the Digitalmars-d
mailing list