计算机科学 > 程序设计语言
[提交于 2013年12月19日]
标题:On the Proxy Identity Crisis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A proxy, in general, is an object mediating access to an arbitrary target object. The proxy is then intended to be used in place of the target object. Ideally, a proxy is not distinguishable from other objects. Running a program with a proxy leads to the same outcome as running the program with the target object. Even though the approach provides a lot of power to the user, proxies come with a limitation. Because a proxy, wrapping a target object, is a new object and different from its target, the interposition changes the behaviour of some core components. For distinct proxies the double == and triple === equal operator returns false, even if the target object is the same. More precisely, the expected result depends on use case. To overcome this limitation we will discuss alternatives.
提交历史
来自:Matthias Keil[v1] 2013年12月19日 星期四 07:56:11 UTC