DIP60: @nogc attribute

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 17 10:39:48 PDT 2014


Walter Bright:

> I know that you bring up the array literal issue and gc a lot, 
> but this is simply not a major issue with @nogc. The @nogc will 
> tell you if it will allocate on the gc or not, on a case by 
> case basis, and you can use easy workarounds as necessary.

Assuming you have seen my examples with dmd/ldcs, so are you 
saying that according to the compilation level the compiler will 
accept or not accept the @nogc attribute on a function?

Bye,
bearophile


More information about the Digitalmars-d mailing list