Minimalist Classes
Dmitry Soshnikov
dmitry.soshnikov at gmail.com
Tue Nov 1 10:47:53 PDT 2011
On 01.11.2011 21:41, Axel Rauschmayer wrote:
> If I am not mistaken, this approach would not work with
> Function.prototype.call, which lets you pick any method and hand in an
> arbitrary |this|. That means you skip a step in the tracking that you
> are performing.
>
Can you show an example (and also the same example which is solved by
es-proposed super-calls)?
The technique I showed of course initially is designed to be used with
class-system; though, I think it can be adopted to class-free system as
well.
Dmitry.
>> If Dave (and you) is talking about the problem of i-looping at
>> resolving deeper than 2nd level super-calls, then even call-stack is
>> not needed.
>>
>> See this implementation: https://gist.github.com/1330574#L68 (with
>> delete-restore the parent link technique).
>>
>> Usage level with examples (line 95): https://gist.github.com/1330574#L95
>
> --
> Dr. Axel Rauschmayer
> axel at rauschma.de <mailto:axel at rauschma.de>
>
> home: rauschma.de <http://rauschma.de>
> twitter: twitter.com/rauschma <http://twitter.com/rauschma>
> blog: 2ality.com <http://2ality.com>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111101/30696d5d/attachment-0001.html>
More information about the es-discuss
mailing list