Signature-based polymorphism for C++:

Abstract: "Polymorphism[CW885] is defined as the potential for a variable or function parameter to have a value of one type at one point in time, and a value of a different type at another. In this paper, we propose an extension to the C++ language that offers the polymorphism flexibility of mu...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Granston, Elana D. (VerfasserIn), Russo, Vincent F. (VerfasserIn)
Format: Buch
Sprache:English
Veröffentlicht: Urbana, Ill. 1991
Schriftenreihe:Center for Supercomputing Research and Development <Urbana, Ill.>: CSRD report 1104
Schlagworte:
Zusammenfassung:Abstract: "Polymorphism[CW885] is defined as the potential for a variable or function parameter to have a value of one type at one point in time, and a value of a different type at another. In this paper, we propose an extension to the C++ language that offers the polymorphism flexibility of multiple inheritance without its software engineering disadvantages. Rather than relying on inheritance, our extension allows polymorphism to be achieved by explicitly defining a signature (public class interface) required at a usage or call site. Any object whose class conforms to the designated signature can be bound to a variable or formal parameter at that site
When a member function is invoked on a pointer or reference with a signature as its declared type, the corresponding member function of the referenced object's actual class is invoked. The class's [sic] member functions that correspond to the signature's member functions can be virtual, inline, neither or both.
Beschreibung:15 S.

Es ist kein Print-Exemplar vorhanden.

Fernleihe Bestellen Achtung: Nicht im THWS-Bestand!