2006 · 150 citations · 17 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesSoftware EngineeringObject-oriented AnalysisObject-oriented ProgrammingStatic AnalysisType CheckingType SystemsDynamic Type CheckingObject IdentityPolymorphic TypesStatic SemanticsStatic Type CheckingType ConstructorsType SafetyType Soundness
Virtual classes are class-valued attributes of objects. Like virtual methods, virtual classes are defined in an object's class and may be redefined within subclasses. They resemble inner classes, which are also defined within a class, but virtual classes are accessed through object instances, not as static components of a class. When used as types, virtual classes depend upon object identity -- each object instance introduces a new family of virtual class types. Virtual classes support large-scale program composition techniques, including higher-order hierarchies and family polymorphism. The original definition of virtual classes in BETA left open the question of static type safety, since some type errors were not caught until runtime. Later the languages Caesar and gbeta have used a more strict static analysis in order to ensure static type safety. However, the existence of a sound, statically typed model for virtual classes has been a long-standing open question. This paper presents a virtual class calculus, VC, that captures the essence of virtual classes in these full-fledged programming languages. The key contributions of the paper are a formalization of the dynamic and static semantics of VC and a proof of the soundness of VC.
17
<i>N</i> degrees of separation
Peri Tarr, Harold Ossher, William Harrison et al. · 1999 · 1.2K citations · Full text
Gilad Bracha, William R. Cook · 1990 · 811 citations
Engineering, Systems Engineering, Knowledge Representation +13
Semantics of programming languages: structures and techniques
Choice Reviews Online · 1993 · 422 citations
Conquering aspects with Caesar
Mira Mezini, Klaus Ostermann · 2003 · 303 citations