The Trunk: Traits-ul.290.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Traits-ul.290.mcz

commits-2
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.
- ].!