<div dir="ltr"><div><div>What Levente says is that this immutability is purely conventional and not guaranteed.<br></div>Numbers are technically mutable (but SmallInteger).<br></div>Though, I strongly suggest to not play with such mutations, a mutant Number would be a frightening thing mathematically speaking...<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/26 Frank Shearar <span dir="ltr"><<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 26 November 2013 18:02, Levente Uzonyi <<a href="mailto:leves@elte.hu">leves@elte.hu</a>> wrote:<br>
> On Tue, 26 Nov 2013, <a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a> wrote:<br>
><br>
>> Chris Muller uploaded a new version of Kernel to project The Trunk:<br>
>> <a href="http://source.squeak.org/trunk/Kernel-cmm.821.mcz" target="_blank">http://source.squeak.org/trunk/Kernel-cmm.821.mcz</a><br>
>><br>
>> ==================== Summary ====================<br>
>><br>
>> Name: Kernel-cmm.821<br>
>> Author: cmm<br>
>> Time: 26 November 2013, 10:24:26.281 am<br>
>> UUID: 591c1ede-81bc-40d7-8591-af7fe29b2bd5<br>
>> Ancestors: Kernel-fbs.820<br>
>><br>
>> - Don't let Boolean and Number inherit Object's really slow #veryDeepCopy.<br>
><br>
><br>
> Some Numbers are mutable objects, so this doesn't sound right.<br>
<br>
</div>Which Numbers are mutable? They _should_ all be purely functional,<br>
like Point (which I know is not a Number).<br>
<span class="HOEnZb"><font color="#888888"><br>
frank<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Levente<br>
><br>
><br>
>><br>
>> =============== Diff against Kernel-fbs.820 ===============<br>
>><br>
>> Item was added:<br>
>> + ----- Method: Boolean>>veryDeepCopy (in category 'copying') -----<br>
>> + veryDeepCopy<br>
>> + "Overridden for performance to avoid #fixDependents."<br>
>> + ^ self!<br>
>><br>
>> Item was added:<br>
>> + ----- Method: Number>>veryDeepCopy (in category 'private') -----<br>
>> + veryDeepCopy<br>
>> + "Overridden for performance."<br>
>> + ^ self!<br>
>><br>
>><br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>