> o yes sorry, of course i meant like:
>
> myButton->callback(myobject.myCallback);

Not sure how to explain it, but I don't think you can do that because
polymorphism means that there could be more than one myCallback in the
class hierarchy, and which one is called depends on which class is used
to call it, which isn't known until runtime, or something like that.

Been a long time since I looked at Effective C++ or Exceptional C++

D.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to