The Trunk: Kernel-nice.722.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-nice.722.mcz

commits-2
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/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!