Traits at runtime

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

Traits at runtime

Erlis Vidal
Quick question:

Is it possible to manipulate Traits (add, remove) from an object at run time?
Every example shows how to use a trait through class modification, but is it possible to do this at run time? (Including trait aliases)

Thanks
Erlis

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Traits at runtime

Bert Freudenberg

On 23.06.2011, at 22:23, Erlis Vidal wrote:

Quick question:

Is it possible to manipulate Traits (add, remove) from an object at run time?
Every example shows how to use a trait through class modification, but is it possible to do this at run time? (Including trait aliases)

Yes.

- Bert -



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners