[squeak-dev] The Trunk: Traits-ul.290.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Sep 30 17:36:16 UTC 2012


Levente Uzonyi uploaded a new version of Traits to project The Trunk:
http://source.squeak.org/trunk/Traits-ul.290.mcz

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

Name: Traits-ul.290
Author: ul
Time: 28 September 2012, 10:30:33.464 am
UUID: 3e58b2db-945d-5e41-b9d8-5f5880d86ca8
Ancestors: Traits-ul.289

Speed up Trait class>>allTraitsDo: by using Smalltalk instead of #allInstances.

=============== Diff against Traits-ul.289 ===============

Item was changed:
  ----- Method: Trait class>>allTraitsDo: (in category 'public') -----
  allTraitsDo: aBlock
  	"Evaluate aBlock with all the instance and class traits present in the system"
+ 	
+ 	Smalltalk allTraitsDo: [ :aTrait |
+ 		aBlock
+ 			value: aTrait instanceSide;
+ 			value: aTrait classSide ]!
- 	Trait allInstances do: [:aTrait|
- 		aBlock value: aTrait instanceSide.
- 		aBlock value: aTrait classSide.
- 	].!



More information about the Squeak-dev mailing list