The Trunk: Kernel-cmm.806.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-cmm.806.mcz

commits-2
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.806.mcz

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

Name: Kernel-cmm.806
Author: cmm
Time: 16 September 2013, 5:38:39.489 pm
UUID: 431dea93-aeff-4997-88d1-427e09f9375a
Ancestors: Kernel-fbs.805

Magnitude>>#inRangeOf:and: is a more-forgiving version of #between:and:.

=============== Diff against Kernel-fbs.805 ===============

Item was added:
+ ----- Method: Magnitude>>inRangeOf:and: (in category 'comparing') -----
+ inRangeOf: first and: second
+ "Answer whether the receiver is in the range between first and second, even if first is > second."
+ ^ first < second
+ ifTrue:
+ [ self
+ between: first
+ and: second ]
+ ifFalse:
+ [ self
+ between: second
+ and: first ]!