The Dependent Delegate Dilemma

  • Meyer B
N/ACitations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

Meyer, B. (2005). The Dependent Delegate Dilemma. In Engineering Theories of Software Intensive Systems (pp. 105–118). Springer-Verlag. https://doi.org/10.1007/1-4020-3532-2_4

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free