See &gt;&gt;becomeForward:<br><br>Gulik.<br><br><div class="gmail_quote">On Feb 19, 2008 4:59 PM, itsme213 &lt;<a href="mailto:itsme213@hotmail.com">itsme213@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
#become: apparently (effectively) swaps object ids.<br><br>Is there anything like<br> &nbsp; &nbsp;x oneWayBecome: y<br>that would pass this test:<br><br>testOneWayBecome: x to: y<br> &nbsp; &nbsp;| a b |<br> &nbsp; &nbsp;a := x.<br> &nbsp; &nbsp;b := y.<br> &nbsp; &nbsp;x oneWayBecome: y.<br>
 &nbsp; &nbsp;self assert: [x == y].<br> &nbsp; &nbsp;self assert: [a == y].<br> &nbsp; &nbsp;self assert: [b == y].<br><br>(Not related to my earlier collection empty question)<br><br>Thanks - Sophie<br><br><br><br>_______________________________________________<br>
Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a>