[squeak-dev] The Trunk: Kernel-nice.613.mcz

Frank Shearar frank.shearar at gmail.com
Sun Aug 28 22:51:08 UTC 2011


On 28 August 2011 23:20,  <commits at source.squeak.org> wrote:
> Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-nice.613.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-nice.613
> Author: nice
> Time: 29 August 2011, 12:20:33.523 am
> UUID: c5ac2f0a-3419-41d9-a4e5-0331ff55467d
> Ancestors: Kernel-cmm.612
>
> Don't provide separate setters for Complex #real: and #imaginary: parts.
> Instead, provide a single #real:imaginary: initializer, that's faster and safer (like Magnitude, Complex numbers might be shared and it would be dangerous to modify a Complex in place).
>
> =============== Diff against Kernel-cmm.612 ===============

If I read my image correctly, this change is the final bit needed to
make Complex "purely functional", in the sense that (apart from the
inescapable full-state-setter (and crazy things like #instVarAt:put:))
a Complex's state cannot change.

Nice!

frank



More information about the Squeak-dev mailing list