BIB-VERSION:: CS-TR-v2.0 ID:: STAN//CSL-TR-90-418 ENTRY:: November 08, 1994 ORGANIZATION:: Stanford University, Computer Systems Laboratory TITLE:: Runtime Access to Type Information in C++ TYPE:: Technical Report AUTHOR:: Interrante, John A. AUTHOR:: Linton, Mark A. DATE:: March 1990 PAGES:: 10 ABSTRACT:: The C++ language currently does not provide a mechanism for an object to determine its type at runtime. We propose the Dossier class as a standard interface for accessing type information from within a C++ program. We have implemented a tool called mkdossier that automatically generates type information in a form that can be compiled and linked with an application. In the prototype implementation, a class must have a virtual function to access an object's dossier given the object. We propose this access be provided implicitly by the language through a predefined member in all classes. NOTES:: [Adminitrivia V1/Prg/19941108] END:: STAN//CSL-TR-90-418