Sciweavers

POPL
2003
ACM

Ownership types for object encapsulation

14 years 11 months ago
Ownership types for object encapsulation
Ownership types provide a statically enforceable way of specifying object encapsulation and enable local reasoning about program correctness in object-oriented languages. However, a type system that enforces strict object encapsulation is too constraining: it does not allow efficient implementation of important constructs like iterators. This paper argues that the right way to solve the problem is to allow objects of classes defined in the same module to have privileged access to each other's representations; we show how to do this for inner classes. This approach allows programmers to express constructs like iterators and yet supports local reasoning about the correctness of the classes, because a class and its inner classes together can be reasoned about as a module. The paper also sketches how we use our variant of ownership types to enable efficient software upgrades in persistent object stores. Categories and Subject Descriptors D.3.3 [Programming Languages]: Language Constr...
Chandrasekhar Boyapati, Barbara Liskov, Liuba Shri
Added 03 Dec 2009
Updated 03 Dec 2009
Type Conference
Year 2003
Where POPL
Authors Chandrasekhar Boyapati, Barbara Liskov, Liuba Shrira
Comments (0)