[squeak-dev] The Inbox: Kernel-ar.529.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Dec 14 16:00:46 UTC 2010


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!




More information about the Squeak-dev mailing list