[squeak-dev] Changing an object's class

Randal L. Schwartz merlyn at stonehenge.com
Sat Apr 30 22:56:37 UTC 2011


>>>>> "Frank" == Frank Shearar <frank.shearar at angband.za.org> writes:

Frank> There are some costs involved in this, of course: I create two
Frank> entire copies of the tree. One, making the mutable copy, seems
Frank> unavoidable: you cannot simply un-immutable the tree, because you
Frank> have no idea what other objects might have a reference to parts
Frank> of the tree, and they all assume the tree's immutable.

You appear not to be aware of #become:, or have already ruled it out for
reasons you haven't made clear.  Which is it?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion



More information about the Squeak-dev mailing list