DIP68: Adding @nogc to types

Chris Williams via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 10 12:00:44 PST 2014


On Monday, 10 November 2014 at 12:59:14 UTC, Tomer Filiba wrote:
> http://wiki.dlang.org/DIP68
>
> This DIP proposes the addition of a compiler-enforced @nogc 
> attribute on types.

I would probably suggest extending this to variables.

class Foo {
     @nogc Bar var1;

     void doStuff() {
         @nogc char* cStrPtr;
     }
}


More information about the Digitalmars-d mailing list