[Newbies] What is a "weak" reference

Herbert König herbertkoenig at gmx.net
Mon Jul 14 14:43:37 UTC 2008

Hello Michael,

MD>     ^ Parent allInstances detect: [ :each | each children includes: self ]

allInstances scans *every* object in the image which is slow.

The garbage collector needs a path to a root object (whatever that is)
so a purely circular reference does not prevent garbage collection of
parent and child.



More information about the Beginners mailing list