On Wed, Jun 4, 2008 at 8:41 AM, Klaus D. Witzel &lt;<a href="mailto:klaus.witzel@cobss.com">klaus.witzel@cobss.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
{&#39;this &#39;, &#39;and &#39;, &#39;that&#39;} collect: [:each | ].<br>
Smalltalk garbageCollect.<br>
{thisContext tempAt: 1} inspect<br>
<br>
first line: create some object and make a temp var point to it.<br>
second line: invoke GC.<br>
third line: see what&#39;s still pointed to by the temp var.<br>
</blockquote>
</blockquote></div></blockquote></div><br><br>So...if I do line 1, then line 3, should I see items in the Array, or just the Array itself.<br><br>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!<br>
<br>Chasing pointers and objects is showing me that when I remove objects from my collections, I need to do that &quot;all the way down,&quot; I think...<br><br>Thank you for helping my brain move in the right direction.<br>
<br>Rob<br>