[squeak-dev] immutability

Eliot Miranda eliot.miranda at gmail.com
Thu Mar 18 00:41:55 UTC 2010


On Wed, Mar 17, 2010 at 7:26 AM, Randal L. Schwartz
<merlyn at stonehenge.com>wrote:

>
> Has anyone looked at, proposed, implemented object immutability?
> Obviously, it would require a VM change.
>

yes  I implemented this for the Newspeak VM, which is a derivative of the
Squeak 3.9 VMs.  The source is available via the Newspeak downloads.  If
you're interested in integrating this into a Squeak VM let me know and I can
help.

cheers
Eliot


> It would make database proxy objects a bit easier, because they could be
> marked immutable to throw an exception during the first write, so they
> could
> be marked dirty (and then mutable) to write back before finalization.
>
> I know VWST has something like this, and I think GemStone does as well.
>
> --
> 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.vox.com/ for Smalltalk and Seaside
> discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100317/a7865b6b/attachment.htm


More information about the Squeak-dev mailing list