Question about scope of @nogc

weaselcat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 11 13:26:45 PST 2015


(Scope might have been a bad word choice...)

Is @nogc intended to only stop from calling functions that 
allocate with the GC, or from interacting with the GC altogether? 
Is there a technical reason that functions such as addrange, etc 
cannot be @nogc if the former since AFAIK such functions do not 
allocate.

Thanks.


More information about the Digitalmars-d-learn mailing list