[[Invoke]] vs [[Get]]
Tom Van Cutsem
tomvc.be at gmail.com
Mon Jun 10 01:22:40 PDT 2013
2013/6/9 Juan Ignacio Dopazo <dopazo.juan at gmail.com>
> It seems like the right reasoning. The result of these operations should
> be equivalent:
> let f = obj.f;
These operations will still be equivalent for:
- a proxy that implements both "get" and "invoke" in a consistent way.
- a proxy that implements neither "get" nor "invoke" (the default will be
to forward in both cases)
- a proxy that subclasses DelegatingHandler  and only overrides "get"
If a proxy implements "get" and "invoke" in ways that are not mutually
consistent, then those operations will not be equivalent. But there are
many, many other cases where proxies can already do similar such things.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss