>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
Andre> But that does not solve my current problem of having to call a
Andre> base class' handlers manually in a derived class as far as I
Andre> can see. Or does it?
What you should do, I think is to have every InsetFoo::dispatch(...)
method call its parent dispatch on the 'default:' of the switch(). Do
you have to know explicitely the parent name for that in C++
(presumably becasue of multiple inheritence?). In Java, it would be as
simple as super.dispatch().
I think you have to do it anyway. And I think the virtual table
solution is not magic either, since in some case you may want to do
case LFUN_FOO:
if (some condition) {
handle it myself
}
else {
lets do as my parent does
}
JMarc