The Inbox: Kernel-ar.529.mcz

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

The Inbox: Kernel-ar.529.mcz

commits-2
Andreas Raab uploaded a new version of Kernel to project The Inbox:
http://source.squeak.org/inbox/Kernel-ar.529.mcz

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

Name: Kernel-ar.529
Author: ar
Time: 14 December 2010, 7:59:55.466 am
UUID: 004c9337-cbbe-de4f-abe2-1b7b79d6849b
Ancestors: Kernel-ar.528

Put the infinity check back (copy and paste error).

=============== Diff against Kernel-ar.528 ===============

Item was changed:
  ----- Method: Float>>cos (in category 'mathematical functions') -----
  cos
  "Answer the cosine of the receiver taken as an angle in radians."
  <primitive: 'primitiveCos' module: 'FloatMathPlugin'>
  self isNaN ifTrue:[SignalNaN ifTrue:[NaNError signal]. ^self].
+ self abs = Float infinity ifTrue:[^self error: 'cos is undefined for Infinity'].
  ^ (self + Halfpi) sin!