[squeak-dev] The Trunk: Traits-nice.238.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Oct 20 23:08:28 UTC 2009


Nicolas Cellier uploaded a new version of Traits to project The Trunk:
http://source.squeak.org/trunk/Traits-nice.238.mcz

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

Name: Traits-nice.238
Author: nice
Time: 21 October 2009, 1:07:57 am
UUID: fa5c2b31-4500-4c84-b14d-1c584e82c560
Ancestors: Traits-nice.237

Use #keys rather than #fasterKeys
Note that pattern (x keys asArray sort) could as well be written (x keys sort) now that keys returns an Array...
This #asArray is here solely for cross-dialect/fork compatibility.

=============== Diff against Traits-nice.237 ===============

Item was changed:
  ----- Method: TraitDescription>>organization (in category 'organization') -----
  organization
  	"Answer the instance of ClassOrganizer that represents the organization 
  	of the messages of the receiver."
  
  	organization ifNil:
+ 		[self organization: (ClassOrganizer defaultList: self methodDict keys asArray sort)].
- 		[self organization: (ClassOrganizer defaultList: self methodDict fasterKeys sort)].
  	(organization isMemberOf: Array) ifTrue:
  		[self recoverFromMDFaultWithTrace].
  	
  	"Making sure that subject is set correctly. It should not be necessary."
  	organization ifNotNil: [organization setSubject: self].
  	^ organization!




More information about the Squeak-dev mailing list