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

commits at source.squeak.org commits at source.squeak.org
Tue Jan 1 15:04:47 UTC 2013

Nicolas Cellier uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-nice.722
Author: nice
Time: 20 December 2012, 11:22:42.941 pm
UUID: 4589308f-5685-426c-a60e-596a6f2221dc
Ancestors: Kernel-nice.720

Let 0.0 negated answer Float negativeZero.

This let following code work:
self assert: (Compiler evaluate: '-0.0') hex = Float negativeZero hex

=============== Diff against Kernel-nice.720 ===============

Item was changed:
  ----- Method: Float>>negated (in category 'arithmetic') -----
+ 	"Answer a Number that is the negation of the receiver.
+ 	Implementation note: this version cares of negativeZero."
- 	"Answer a Number that is the negation of the receiver."
+ 	^-1.0 * self!
- 	^0.0 - self!

More information about the Packages mailing list