[Pkg] The Trunk: Kernel-bf.601.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jun 23 13:38:15 UTC 2011


Bert Freudenberg uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-bf.601.mcz

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

Name: Kernel-bf.601
Author: bf
Time: 23 June 2011, 3:37:18.629 pm
UUID: f3acd77d-7721-4775-90d7-a4aa00a90670
Ancestors: Kernel-cmm.600

revert Float>>/ to restore proper ZeroDivide handling (see 
testZeroDivideHandler)

=============== Diff against Kernel-cmm.600 ===============

Item was changed:
  ----- Method: Float>>/ (in category 'arithmetic') -----
  / aNumber 
  	"Primitive. Answer the result of dividing receiver by aNumber.
  	Fail if the argument is not a Float. Essential. See Object documentation
  	whatIsAPrimitive."
  
  	<primitive: 50>
+ 	aNumber isZero ifTrue: [^(ZeroDivide dividend: self) signal].
+ 	^ aNumber adaptToFloat: self andSend: #/!
- 	aNumber = 0.0 ifTrue: [ ZeroDivide signalWithDividend: self].
- 	^aNumber adaptToFloat: self andSend: #/!



More information about the Packages mailing list