Maybe D is right about GC after all !

Ali Çehreli acehreli at yahoo.com
Wed Dec 20 18:12:44 UTC 2017


On 12/20/2017 09:05 AM, Tony wrote:

 > how a garbage collector determines that there usage is just via
 > each other and that they can be deleted.

Similar to the PHP link Dgame posted, the GC looks for live objects by 
starting from roots (essentially, the objects on the stack and the 
static variables). Even if there are islands of objects referencing 
others in self or other islands, as long as they are not reachable from 
any root, they are gone.

Ali



More information about the Digitalmars-d mailing list