Hi,
The current trait implementation (which can be found in the
files lively/Traits.js and lively/Base.js) can be used to share
methods and other properties among different classes that
do not have a common superclass. SelectionMorphTrait
seems to be the only example of a trait that is actually
applied to more than one class in the Lively core, though.
I think the same functionality including seamless updating
of traits and trait inheritance can be achieved with a simpler
trait implementation.
Here's a demo page:
http://lively-kernel.org/repository/webwerkstatt/users/cschuster/alttraits.xhtmlI'm interested in your opinions,
Christopher
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel