State Based Ownership, Reentrance, and Encapsulation
State Based Ownership, Reentrance, and Encapsulation
复制标题
基于状态的所有权、重入和封装
DOI:
10.1007/11531142_17
复制
发表时间:
2005
期刊:
影响因子:
--
通讯作者:
D. Naumann
中科院分区:
文献类型:
--
作者:
A. Banerjee;D. Naumann
A properly encapsulated data representation can be revised for refactoring or other purposes without affecting the correctness of client programs and extensions of a class. But encapsulation is difficult to achieve in object-oriented programs owing to heap based structures and reentrant callbacks. This paper shows that it is achieved by a discipline using assertions and auxiliary fields to manage invariants and transferrable ownership. The main result is representation independence: a rule for modular proof of equivalence of class implementations.
DOI:
10.1145/964001.964024
发表时间:
2004-01
期刊:
Proceedings of the 31st ACM SIGPLAN-SIGACT symposium on Principles of programming languages
影响因子:
--
作者:
P. O'Hearn;Hongseok Yang;J. C. Reynolds
通讯作者:
P. O'Hearn;Hongseok Yang;J. C. Reynolds