[squeak-dev] The Trunk: Kernel-cmm.821.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Nov 26 22:45:59 UTC 2013


What Levente says is that this immutability is purely conventional and not
guaranteed.
Numbers are technically mutable (but SmallInteger).
Though, I strongly suggest to not play with such mutations, a mutant Number
would be a frightening thing mathematically speaking...


2013/11/26 Frank Shearar <frank.shearar at gmail.com>

> On 26 November 2013 18:02, Levente Uzonyi <leves at elte.hu> wrote:
> > On Tue, 26 Nov 2013, commits at source.squeak.org wrote:
> >
> >> Chris Muller uploaded a new version of Kernel to project The Trunk:
> >> http://source.squeak.org/trunk/Kernel-cmm.821.mcz
> >>
> >> ==================== Summary ====================
> >>
> >> Name: Kernel-cmm.821
> >> Author: cmm
> >> Time: 26 November 2013, 10:24:26.281 am
> >> UUID: 591c1ede-81bc-40d7-8591-af7fe29b2bd5
> >> Ancestors: Kernel-fbs.820
> >>
> >> - Don't let Boolean and Number inherit Object's really slow
> #veryDeepCopy.
> >
> >
> > Some Numbers are mutable objects, so this doesn't sound right.
>
> Which Numbers are mutable? They _should_ all be purely functional,
> like Point (which I know is not a Number).
>
> frank
>
> > Levente
> >
> >
> >>
> >> =============== Diff against Kernel-fbs.820 ===============
> >>
> >> Item was added:
> >> + ----- Method: Boolean>>veryDeepCopy (in category 'copying') -----
> >> + veryDeepCopy
> >> +       "Overridden for performance to avoid #fixDependents."
> >> +       ^ self!
> >>
> >> Item was added:
> >> + ----- Method: Number>>veryDeepCopy (in category 'private') -----
> >> + veryDeepCopy
> >> +       "Overridden for performance."
> >> +       ^ self!
> >>
> >>
> >>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20131126/d5cb2cd2/attachment.htm


More information about the Squeak-dev mailing list