Lodewijk Bergmans, Johan Brichau, Siobhan Clarke, Maurice Glandrup
1 Department of Computer Science, Faculty of Science, Aarhus University, Aarhus University2 Department of Computer Science, Science and Technology, Aarhus University3 Department of Computer Science, Science and Technology, Aarhus University
Families of mutually dependent classes that may be accessed polymor- phically provide an advanced tool for separation of concerns, in that it enables client code to use a group of instances of related classes safely without depending on the exact classes involved. However, class families which are expressed using virtual classes seem to be very tightly coupled internally. While clients have achieved the freedom to dynamically use one or the other family, it seems that any given family contains a xed set of classes and we will need to create an entire family of its own just in order to replace one of the members with another class. This paper shows how to express class families in such a manner that the classes in these families can be used in many dierent combinations, still enabling family polymorphism and ensuring type safety.
Proceedings of Workshop on Advanced Separation of Concerns, 2001
Main Research Area:
15th European Conference on Object-Oriented Programming. ECOOP 2001