On 22.03.2010, at 10:15, Domingo Alvarez Duarte wrote: > I'm experimenting with dao http://daovm.net/ and his author did an > amazing job creating a automated tool that can create bindings to almost > all fltk 1.3 including deriving fltk classes, but for it to work with > callbacks easily he needs to make "void do_callback(Fl_Widget* o,void* > arg=0)" a virtual function. > > I propose to make this modification on the official FLTK sources.
I understand why you would do this. do_callback however is the wrong function to make virtual. It could however be quite useful to have a function, for example called 'virtual void action()' that could be called if there is no callback in place. That way, a user who prefers to derive a class - instead of setting a callback - will not need to go through a static member function. - Matthias _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
