Garbage Collector : Ignoring a reference

ciechowoj via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 26 06:45:59 PDT 2016


> Thus, i need a way to tell the gc to ignore the reference ( or 
> something similar ) in that hashmap.

So, having pointer that doesn't hold a reference isn't that hard 
(store it in memory region that is unreachable to gc), but don't 
you need a way to tell if that pointer ins't dangling, beyond 
initial problem?


More information about the Digitalmars-d-learn mailing list