[Pkg] The Trunk: Kernel-nice.881.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 27 21:00:40 UTC 2014


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

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

Name: Kernel-nice.881
Author: nice
Time: 27 October 2014, 9:59:32.033 pm
UUID: 3a3a0a22-ab12-4838-8606-250c9e58cf76
Ancestors: Kernel-ul.880

Fix Float literal equality: 0.0 and -0.0 are not the same Float...

=============== Diff against Kernel-ul.880 ===============

Item was added:
+ ----- Method: Float>>literalEqual: (in category 'comparing') -----
+ literalEqual: aFloat
+ 	"Two float literals can be replaced by a single one only if their representation have the same bits.
+ 	For example, zero and negativeZero are equal, but not literally equal."
+ 
+ 	^self class == aFloat class and: [(self at: 1) = (aFloat at: 1) and: [(self at: 2) = (aFloat at: 2)]]!



More information about the Packages mailing list