[squeak-dev] The Trunk: Kernel-fbs.752.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sat Mar 30 22:35:54 UTC 2013


I wonder about the Fraction implementation.
Since any Integer isFraction I think it's better to simply let super ^0.
Synthetizing an unreduced Fraction should be restricted to very specific
case. Do you have such specific usage?

Nicolas


2013/3/30 <commits at source.squeak.org>

> Frank Shearar uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-fbs.752.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-fbs.752
> Author: fbs
> Time: 30 March 2013, 10:09:47.906 pm
> UUID: 0724a0a2-6b96-4e07-94ed-79bdc4e2466b
> Ancestors: Kernel-eem.751
>
> Increase the "polymorphitude" of numbers by supplying a default
> implementation of #zero, together with a few per-type specialisations to go
> with those we already have.
>
> =============== Diff against Kernel-eem.751 ===============
>
> Item was added:
> + ----- Method: Float class>>zero (in category 'constants') -----
> + zero
> +       ^ 0.0.!
>
> Item was added:
> + ----- Method: Fraction class>>zero (in category 'constants') -----
> + zero
> +       ^ self numerator: 0 denominator: 1.!
>
> Item was added:
> + ----- Method: Number class>>zero (in category 'constants') -----
> + zero
> +       ^ 0.!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130330/edfaac3f/attachment.htm


More information about the Squeak-dev mailing list