Software Practice and Experience · 1995 · 34 citations · 27 references
ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingCompiler ConstructionData TypesObject-oriented ProgrammingProgramming Language ImplementationType CheckingType SystemsAbstract SemanticsAbstract TypesAbstractionAbstraction MechanismsCompiler DesignPolymorphic Type SystemsPolymorphic TypesSubtype Polymorphism
Abstract C++ uses inheritance as a substitute for subtype polymorphism. We give examples where this makes the type system too inflexible. We then describe a conservative language extension that allows a programmer to define an abstract type hierarchy independent of any implementation hierarchies, to retroactively abstract over an implementation, and to decouple subtyping from inheritance. This extension gives the user more of the flexibility of dynamic typing while retaining the efficiency and security of static typing. With default implementations and views flexible mechanisms are provided for implementing an abstract type by different concrete class types. We first show how the language extension can be implemented in a preprocessor to a C++ compiler, and then detail and analyse the efficiency of an implementation we directly incorporated in the GNU C++ compiler.
27
Report on the programming language Haskell
Paul Hudak, Simon Peyton Jones, Philip Wadler et al. · ACM SIGPLAN Notices · 1992 · 1K citations · Full text
A semantics of multiple inheritance
Luca Cardelli · Information and Computation · 1988 · 627 citations
Language Studies, World Languages, Knowledge Representation +7
Roberto M. Amadio, Luca Cardelli · ACM Transactions on Programming Languages and Systems · 1993 · 353 citations · Full text
William R. Cook, Walter L. Hill, Peter S. Canning · 1990 · 322 citations · Full text