oh, ok. Yeah, I like the idea, but I agree with stef that you need tool support... an environment like Self for example On Thu, Feb 16, 2012 at 6:11 PM, Nicolas Passerini <npasserini@gmail.com>wrote:
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.
-- *Hernán Wilkinson Agile Software Development, Teaching & Coaching Mobile: +54 - 911 - 4470 - 7207 email: hernan.wilkinson@10Pines.com site: http://www.10Pines.com <http://www.10pines.com/>* Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina