NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Object-oriented programming with mixins in AdaRecently, I wrote a paper discussing the lack of 'true' object-oriented programming language features in Ada 83, why one might desire them in Ada, and how they might be added in Ada 9X. The approach I took in this paper was to build the new object-oriented features of Ada 9X as much as possible on the basic constructs and philosophy of Ada 83. The object-oriented features proposed for Ada 9X, while different in detail, are based on the same kind of approach. Further consideration of this approach led me on a long reflection on the nature of object-oriented programming and its application to Ada. The results of this reflection, presented in this paper, show how a fairly natural object-oriented style can indeed be developed even in Ada 83. The exercise of developing this style is useful for at least three reasons: (1) it provides a useful style for programming object-oriented applications in Ada 83 until new features become available with Ada 9X; (2) it demystifies many of the mechanisms that seem to be 'magic' in most object-oriented programming languages by making them explicit; and (3) it points out areas that are and are not in need of change in Ada 83 to make object-oriented programming more natural in Ada 9X. In the next four sections I will address in turn the issues of object-oriented classes, mixins, self-reference and supertyping. The presentation is through a sequence of examples. This results in some overlap with that paper, but all the examples in the present paper are written entirely in Ada 83. I will return to considerations for Ada 9X in the last section of the paper.
Document ID
19930007982
Acquisition Source
Legacy CDMS
Document Type
Other
Authors
Seidewitz, ED
(NASA Goddard Space Flight Center Greenbelt, MD, United States)
Date Acquired
September 6, 2013
Publication Date
November 1, 1992
Publication Information
Publication: Collected Software Engineering Papers, Volume 10
Subject Category
Computer Programming And Software
Accession Number
93N17171
Distribution Limits
Public
Copyright
Work of the US Gov. Public Use Permitted.
No Preview Available