Allen Wirfs-Brock (2013-12-03T19:29:38.000Z)
On Dec 3, 2013, at 11:08 AM, Domenic Denicola wrote:

> Perhaps it would be helpful if someone showed how to implement Object.mixin using Function.prototype.toMethod?

I don't have the time right now, but as a rough approximation take the most recent specification of MixinProperties (which is the guts of Object.mixin) http://people.mozilla.org/~jorendorff/es6-draft.html#sec-mixinproperties and rewrite in in JS.  Replace each call of RebindSuper(x,y) with x.toMethod(y).  Replace each call of SameValue(GetSuperBinding(x), source) with (typeof x === "function"),

Allen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131203/aa84c433/attachment.html>
domenic at domenicdenicola.com (2013-12-10T01:32:07.458Z)
On Dec 3, 2013, at 11:08 AM, Domenic Denicola wrote:

> Perhaps it would be helpful if someone showed how to implement Object.mixin using Function.prototype.toMethod?

I don't have the time right now, but as a rough approximation take the most recent specification of [MixinProperties](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-mixinproperties) (which is the guts of Object.mixin)  and rewrite in in JS.  Replace each call of RebindSuper(x,y) with x.toMethod(y).  Replace each call of SameValue(GetSuperBinding(x), source) with (typeof x === "function"),