<div dir="ltr">&lt;&lt;&lt; Randal said...<br>
Setting &quot;each&quot; to &quot;nil&quot; there does nothing, since you aren&#39;t<br>updating the object that was originally in &quot;each&quot;.<br>
&gt;&gt;&gt;<br>
<br>&lt;&lt; Marcus said...<br>
This is a pretty common misconception. It seems to come up once a month. I<br>
wonder why - mostly it&#39;s not people who are new to programming, who I would<br>
expect to be unfamiliar with the distinction between an object or value and<br>
the location it is stored in.&gt;&gt;<br><br>I was wondering exactly that myself. After my &#39;doh!&#39; moment, when Randal explained what I was doing wrong, I was trying to work out why I had made the mistake. The conclusion I came to was that I was becoming so used to sending messages to objects, that I had confused myself into thinking that I was somehow sending &#39;become nil&#39; to the object stored in :each.<br>
<br>Cheers<br>AB<br>
<br>
<br></div>