【24h】

THE DEPENDENT DELEGATE DILEMMA

机译:依赖代理人困境

获取原文
获取原文并翻译 | 示例

摘要

A criticism of the object-oriented style of programming is that the notion of class invariant seems to collapse in non-trivial client-supplier relationships: a supplier ("Dependent Delegate") called from within the execution of a routine, where the invariant is not required to hold, may call back into the originating object, which it then catches in an inconsistent state. This is one of the problems arising from the application of assertion-based semantics to a model of computation involving references and the resulting possibility of dynamic aliasing. This note suggests handling such cases by applying the basic non-object-oriented Hoare rule, instead of the version involving the invariant. It does not consider inheritance and dynamic binding.
机译:对面向对象编程风格的批评是,类不变性的概念在非平凡的客户-供应商关系中似乎崩溃了:从例程执行中调用的供应商(“依赖委托”),其中不变性是不需要保留,可以回调原始对象,然后以不一致的状态捕获该原始对象。这是由于将基于断言的语义应用于涉及引用的计算模型而产生的问题之一,并可能导致动态混叠。本注释建议通过应用基本的非面向对象的Hoare规则(而不是涉及不变式的规则)来处理此类情况。它不考虑继承和动态绑定。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号