[squeak-dev] The Inbox: Kernel-nice.722.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 20 22:24:01 UTC 2012


A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-nice.722.mcz

==================== 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') -----
  negated
+ 	"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 Squeak-dev mailing list