I vote A, C. Only methods can be overloaded.
/ Niels Möller ()
Previous text:
2003-01-22 14:31: Subject: Parent reference semantics.
Poll: Given the following files:
A.pmod: void foo() { werror("A\n"); }
class B { void bar() { foo(); } }
C.pike:
inherit .A.B;
void baz() { foo(); }
void foo() { werror("C\n"); }
Should the following program:
int main() { object c = .C();
c->bar(); c->baz(); }
Output
A C
or
C C
? ie Should parent references be overloadable via inherit?
/ Henrik Grubbström (Lysator)