Mitigating the attribute proliferation - attribute inference for functions

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 17 10:00:00 PDT 2015


On Friday, 17 July 2015 at 16:40:56 UTC, Jonathan M Davis wrote:
> @nogc is mostly a PR thing IMHO. It has value in that it helps 
> you find places where you accidentally used the GC (though if 
> you really care, you can always use the profiler as you point 
> out), and if @nogc is marked explicitly, it makes it easier to 
> see which functions can be used in @nogc code, but ultimately, 
> it really seems like it's there simply to appease the folks who 
> don't want any GC usage at all.
>

@nogc is great for making sure code doesn't allocate(by GC means, 
anyways.)


More information about the Digitalmars-d mailing list