Private Slots

Kevin Smith khs4473 at gmail.com
Mon Jan 14 19:31:11 PST 2013


>
>> That's why the methods are bound to the original object.
>>
>
> Regardless of the "this" binding, the privately keyed method will not be
> copied over from the source object and hence will be undefined when called.
>

Sorry, I misunderstood what you were trying to get at.  Your implementation
would require carrying around a fully constructed `b` in addition to a
fully constructed `a`, which I suppose is a kind of "uses-a" mixin, rather
than the inheritance-based mixin that I was trying to create.

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130114/6463cf76/attachment.html>


More information about the es-discuss mailing list