On May 5, 2011, at 8:19 AM, Panu Suominen wrote:

> 2011/5/4 andres <[email protected]>:
>> Hi Panu. I don't know if immutability is available in Pharo, but if it is it
>> may work for you. You basically mark an object as immutable and register an
>> exception handler. When an immutable object's i.v. is assigned a new value,
>> an exception is raised and the assignment is left pending. There you can log
>> the change and effectively apply the assignment to the object.
> 
> This sounds good but it seems that Squeak VM does not yet contain
> immutable objects.
> I am not sure.


No. They were implemented in the Squeak VM that NewSpeak uses.
So the code is out there.

        Marcus



--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


Reply via email to