@nogc for structs, blocks or modules?
maik klein via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 15 18:42:06 PST 2016
I am probably the minority but I almost never use the GC in D.
Because I never use the GC I could mark 99% of my functions with
@nogc.
I just seems very annoying to add @nogc to every function.
For people like me it seems that it could be a nice addition to
also allow @nogc for structs like
@nocgc struct Foo{..}
or blocks
@nogc{
void foo(){}
void foo1(){}
}
or even modules
@nogc module Foo
What do you think?
More information about the Digitalmars-d
mailing list