[[Invoke]] and implicit method calls
Tom Van Cutsem
tomvc.be at gmail.com
Wed Sep 11 03:30:36 PDT 2013
2013/9/10 Allen Wirfs-Brock <allen at wirfs-brock.com>
> On Sep 10, 2013, at 4:14 AM, Brendan Eich wrote:
> > I think we should preserve double-lifting via one trap in the
> meta-handler. No has-before-invoke. Allen?
> Well, then we loose the flexibility for a meta-level proxy to control the
> this-binding used when invoking proxy traps on it. Perhaps this isn't an
> issue for meta-level proxies, but it was the primary motivation for
> introducing [[Invoke]].
This isn't an issue for meta-level proxies. One way of explaining why is
that double-lifting is an instance of the "virtual objects" use case (not
the "caretaker" use case), hence doesn't need |this|-rebinding.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss