How does GC.addRange work?

kiran kumari via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 24 00:15:24 PDT 2014


On Saturday, 20 September 2014 at 20:14:36 UTC, Gary Willoughby
wrote:
> How does GC.addRange work? i.e. what is it doing? I'm assuming 
> reading the docs that it adds a range for the GC to scan but 
> what actually happens? Does the GC look into this range and 
> check for the existence of pointers it's currently managing?
>
> For example, if i nulled a pointer in the range i added would 
> that trigger the GC to collect that resource on the next sweep? 
> (assuming it was the last reference.)

see more example
http://techgurulab.com/course/java-quiz-online/


More information about the Digitalmars-d-learn mailing list