[lively-kernel] Proposal for alternative traits
Christopher Schuster
cschuster at ucdavis.edu
Fri Jun 15 21:29:08 CEST 2012
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.xhtml
I'm interested in your opinions,
Christopher
More information about the lively-kernel
mailing list