[squeak-dev] The Trunk: Kernel-cmm.463.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 15 20:18:42 UTC 2010


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

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

Name: Kernel-cmm.463
Author: cmm
Time: 15 June 2010, 3:18:03.121 pm
UUID: 1b05ff9c-c52f-4df5-9283-f8dcd5a88e3a
Ancestors: Kernel-ar.462

Removed implicit conversion of DateAndTime equality-testing argument.

=============== Diff against Kernel-ar.462 ===============

Item was changed:
  ----- Method: DateAndTime>>= (in category 'ansi protocol') -----
+ = aDateAndTime 
+ 	self == aDateAndTime ifTrue: [ ^ true ].
+ 	(aDateAndTime isKindOf: self class) ifFalse: [ ^ false ].
+ 	^ self offset = aDateAndTime offset
+ 		ifTrue: [ self hasEqualTicks: aDateAndTime ]
+ 		ifFalse: [ self asUTC ticks = aDateAndTime asUTC ticks ]!
- = comparand
- 	"comparand conforms to protocol DateAndTime,
- 	or can be converted into something that conforms."
- 	| comparandAsDateAndTime |
- 	self == comparand
- 		ifTrue: [^ true].
- 	comparandAsDateAndTime := [comparand asDateAndTime]
- 		on: MessageNotUnderstood
- 		do: [^ false].
- 	^ self offset = comparandAsDateAndTime offset
- 		ifTrue: [self hasEqualTicks: comparandAsDateAndTime ]
- 		ifFalse: [self asUTC ticks = comparandAsDateAndTime asUTC ticks]
- !




More information about the Squeak-dev mailing list