【24h】

Quasi-static scoping

机译:准静态作用域

获取原文

摘要

Static scoping embodies a strong encapsulation mechanism for hiding the details of program units. Yet, it does not allow the sharing of variable bindings (locations) across independent program units. Facilities such as module and object systems that require cross references of variables therefore must be added as special features. In this paper we present an alternative: quasi-static scoping. Quasi-static scoping is more flexible than static scoping, but has the same encapsulation mechanism. The user can control when and in what scope to resolve a quasi-static variable, i.e., to associate it with a variable binding. To demonstrate its versatility, we add quasi-static scoping to Scheme and show how to build the aforementioned facilities at the user-level. We also show that quasi-static scoping can be implemented efficiently.

机译:

静态作用域体现了一种强大的封装机制,可以隐藏程序单元的详细信息。但是,它不允许跨独立程序单元共享变量绑定(位置)。因此,必须将需要交叉引用变量的功能(如模块和对象系统)添加为特殊功能。在本文中,我们提出了一种替代方案:准静态作用域。准静态作用域比静态作用域更灵活,但是具有相同的封装机制。用户可以控制何时以及在什么范围内解决准静态变量,即将其与变量绑定相关联。为了展示其多功能性,我们在Scheme中添加了准静态作用域,并展示了如何在用户级别构建上述功能。我们还表明,可以有效地实现准静态作用域。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号