<br><br><div class="gmail_quote">On Sat, May 16, 2009 at 9:29 AM, Hernán Morales Durand <span dir="ltr">&lt;<a href="mailto:hernan.morales@gmail.com">hernan.morales@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dolphin:<br>
#becomeAn:<br>
<br>
VisualAge:<br>
#fixClassTo: , #changeToClass:<br>
<br>
VisualWorks:<br>
#changeClassTo:, #changeClassToThatOf:</blockquote><div><br></div><div>Note that VW&#39;s #changeClassTo: is built upon Behavior&gt;&gt;adoptInstance: which is a much better primitive for the VM to implement since it can assume the receiver is a valid behaviour.  The changeClassToThatOf: primitive is also designedto avoid checking for a valid behaviour.  If I were to attempt to standardize I would do so based on adoptInstance:.</div>
<div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
But every Smalltalk has its own particularities and specific conditions.<br>
<br>
2009/5/16 Sophie &lt;<a href="mailto:itsme213@hotmail.com">itsme213@hotmail.com</a>&gt;:<br>
&gt; On 2009-05-12 18:31:34 -0500, Hernán Morales Durand<br>
&gt; &lt;<a href="mailto:hernan.morales@gmail.com">hernan.morales@gmail.com</a>&gt; said:<br>
&gt;<br>
&gt;&gt; #primitiveChangeClassTo:<br>
&gt;&gt;<br>
&gt;&gt; You can see a working example in the Instances Browser :<br>
&gt;&gt; <a href="http://www.squeaksource.com/LightweightClasses.html" target="_blank">http://www.squeaksource.com/LightweightClasses.html</a><br>
&gt;<br>
&gt; Is this portable across Smalltalks, or Squeak-specific?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br>