Am 22.08.2013 um 20:12 schrieb Stéphane Ducasse <stephane.ducasse@inria.fr>:
Does pharo support runtime trait composition or does it only work on class definition time. I mean something like
anObject addTrait: MySpecialCapability anObject removeTrait: MySpecialCapability
Nope :) traits are static :)
Sad. You know I was not asking about trait but about runtime composable behavior. I'm not sure what you mean with "traits are static". If traits are static in pharo that's fine. If you think traits are static by design then I was looking for something that has a different name :)
:)
What I think is that traits are cool but not powerful enough but even the ones that we have right now makes the system more complex and this is what makes me sad :) I would prefer something more powerful and simpler: the graal :)
Agreed. A simple prove that there is a more powerful approach to this small-shared-state-thingies-we-love exists would be nice :) Norbert