On Wed, Jun 4, 2008 at 8:41 AM, Klaus D. Witzel <klaus.witzel@cobss.com> wrote:
{'this ', 'and ', 'that'} collect: [:each | ].
Smalltalk garbageCollect.
{thisContext tempAt: 1} inspect

first line: create some object and make a temp var point to it.
second line: invoke GC.
third line: see what's still pointed to by the temp var.


So...if I do line 1, then line 3, should I see items in the Array, or just the Array itself.

This is all very interesting, because in my application I am creating lots of collections of objects maintaining parent/child pointers, and I have obviously just done it WRONG!

Chasing pointers and objects is showing me that when I remove objects from my collections, I need to do that "all the way down," I think...

Thank you for helping my brain move in the right direction.

Rob