DIP60: @nogc attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 13:52:58 PDT 2014


On Tue, 15 Apr 2014 16:48:42 -0400, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> 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."
>

Oops! Needed to refresh my browser, thanks.

-Steve


More information about the Digitalmars-d mailing list