<br><br><div class="gmail_quote">On Wed, Mar 17, 2010 at 7:26 AM, Randal L. Schwartz <span dir="ltr">&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Has anyone looked at, proposed, implemented object immutability?<br>
Obviously, it would require a VM change.<br></blockquote><div><br></div><div>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&#39;re interested in integrating this into a Squeak VM let me know and I can help.</div>
<div> </div><div>cheers</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
It would make database proxy objects a bit easier, because they could be<br>
marked immutable to throw an exception during the first write, so they could<br>
be marked dirty (and then mutable) to write back before finalization.<br>
<br>
I know VWST has something like this, and I think GemStone does as well.<br>
<font color="#888888"><br>
--<br>
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095<br>
&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt; &lt;URL:<a href="http://www.stonehenge.com/merlyn/" target="_blank">http://www.stonehenge.com/merlyn/</a>&gt;<br>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.<br>
See <a href="http://methodsandmessages.vox.com/" target="_blank">http://methodsandmessages.vox.com/</a> for Smalltalk and Seaside discussion<br>
<br>
</font></blockquote></div><br>