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
[email protected] <mailto:[email protected]>

home: rauschma.de <http://rauschma.de>
twitter: twitter.com/rauschma <http://twitter.com/rauschma>
blog: 2ality.com <http://2ality.com>




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

Reply via email to