A member lookup algorithm for C++
- 1 May 1997
- proceedings article
- Published by Association for Computing Machinery (ACM)
- Vol. 32 (5) , 18-30
- https://doi.org/10.1145/258915.258919
Abstract
The member lookup problem in C++ is the problem of resolving a specified member name in the context of a specified class. Member lookup in C++ is complicated by the presence of virtual inheritance and multiple inheritance. In this paper, we present an efficient algorithm for member lookup in C++. We also present a formalism for the multiple inheritance mechanism of C++, which we use as the basis for deriving our algorithm. The formalism may also be of use as a formal basis for deriving other C++ compiler algorithms.Keywords
This publication has 5 references indexed in Scilit:
- A member lookup algorithm for C++ACM SIGPLAN Notices, 1997
- A natural semantics for Eiffel dynamic bindingACM Transactions on Programming Languages and Systems, 1996
- Slicing class hierarchies in C++Published by Association for Computing Machinery (ACM) ,1996
- An algebraic semantics of subobjectsPublished by Association for Computing Machinery (ACM) ,1995
- Optimizing dynamically-dispatched calls with run-time type feedbackPublished by Association for Computing Machinery (ACM) ,1994