immutability and become (Was: Re: [squeak-dev] immutability)
siguctua at gmail.com
Thu Mar 18 04:00:25 UTC 2010
Yes, i am against adding immutability bit in VM.
But if we going that way, then please explain me how VM will respect
immutability and #become: or #becomeForward:
at the same time.
The problem is following:
suppose your object (a) is referencing object (b).
now you doing:
b becomeForward: c.
which leads to replacement of reference to (b) by reference to (c)
in an object (a), which is immutable.
You could say, lets ignore this.
Then, apparently , expect to see a hacky code, which as a workaround
of immutability, using #become..
Igor Stasenko AKA sig.
More information about the Squeak-dev