> Again I'll ask you to consider that fuz.bar() should work. That is what 
> extend means.  How can we solve this?


It’s possible that you are actually looking for mixins:
http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/

One possible solution is to do 2 extends: one for the objects and one for the 
prototypes. That way, methods remain at the prototype level (as they normally 
should).

-- 
Dr. Axel Rauschmayer

[email protected]
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to