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?




Reply via email to