From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Joshua S. Allen" To: egcs@cygnus.com Subject: Multiple inheritance Date: Mon, 01 Dec 1997 07:05:00 -0000 Message-id: <199712011505.JAA11781@duvieux.eecs.tulane.edu> X-SW-Source: 1997-12/msg00019.html I am making modifications to the gnu g++ compiler to include automatic conflict resolution of multiple inheritance using a linearization algorithm. I have the algorithm implemented but I need to interface it with the compiler. I am hoping that someone could explain a few things to me. (1) I need to construct a table of direct parents of a class. Whereas this could easily be done at parse time, it is presenting me with problems and I was wondering if you could direct me to how this information could be extracted from the parse tree. (2) I am adding the algorithm within the function lookup_fnfields (cp/search.c) where errstr = "request for method %D' is ambiguous"; Once I locate the method in a class, what is the format of the return value I give to the calling function. I need a way of telling the calling function the particular method within a specific class to use. If anyone could answer these questions I would really appreciate it. Thanks for your time. --Joshua Allen allen@eecs.tulane.edu