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

commits at source.squeak.org commits at source.squeak.org
Wed Sep 7 19:55:35 UTC 2011


Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.615.mcz

==================== Summary ====================

Name: Kernel-nice.615
Author: nice
Time: 7 September 2011, 9:54:15.365 pm
UUID: 4e49e25c-85dc-444c-bdd5-5e4bb9d05b6e
Ancestors: Kernel-nice.614

Integer shall understand #numerator and #denominator to be polymorphic to Fraction.
Integer shall be polymorphic to Fraction because Fraction with denominator = 1 don't preserve their class across arithmetic operations.

=============== Diff against Kernel-nice.614 ===============

Item was added:
+ ----- Method: Integer>>denominator (in category 'accessing') -----
+ denominator
+ 	"Let an Integer be polymorphic to a Fraction. See #isFraction."
+ 	^1!

Item was added:
+ ----- Method: Integer>>numerator (in category 'accessing') -----
+ numerator
+ 	"Let an Integer be polymorphic to a Fraction. See #isFraction."
+ 	^self!




More information about the Squeak-dev mailing list