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

commits at source.squeak.org commits at source.squeak.org
Fri Sep 28 11:50:21 UTC 2012

A new version of Traits was added to project The Inbox:

==================== 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