Object-oriented programming in Ada83—genericity rehabilitated

  • Authors:
  • Henry G. Baker

  • Affiliations:
  • Nimble Computer Corporation, 16231 Meadow Ridge Way, Encino, CA

  • Venue:
  • ACM SIGAda Ada Letters
  • Year:
  • 1991

Quantified Score

Hi-index 0.00

Visualization

Abstract

A scheme for single-inheritance object-oriented programming in Ada83 is presented in which man y methods are determined at compile time using "generic" subprogram overloading. Unlike previous schemes for object-oriented programming in Ada83, which rely exclusively on derived types fo r inheritance, our scheme utilizes both derived types and generic units, and hence is more powerful. In particular, inheritance schemes based on derived types cannot handle the C++ concept o f "virtual function", while our scheme determines many of these methods at compile time. Our results call into question Bertrand Meyer's conclusions regarding the weakness of generic units.