On Thu, Feb 16, 2012 at 4:20 PM, Hernan Wilkinson < hernan.wilkinson@10pines.com> wrote:
It looks interesting, but how this relates to the state issue?
It is not directly related to the state issue. Just to different trait models, I think that it would be a nice yet very simple enhancement, to be able add a trait directly to an object at instantiation time istead of always having to create a new class. I apologise if my mail was confusing. However mi little traits extension has also something to say about state. When I do: myObject := (*MyClass with: MyTrait*) new The class of myObject is created dynamically, so I can have MyTrait declaring its required state an then the instance variables are created automatically. It is also a little extension to declaring required methods.