DIP60: @nogc attribute

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 13:48:42 PDT 2014


On 4/15/2014 1:41 PM, Steven Schveighoffer wrote:
> right, but at the end of the day, nothrow doesn't allow throw statements. @nogc,
> so far, just doesn't allow you to call other functions that aren't marked @nogc.

"GC allocations in a @nogc function will be disallowed, and that means calls to 
operator new, closures that allocate on the GC, array concatenation, array 
appends, and some array literals."



More information about the Digitalmars-d mailing list