Comment Member function pointers (Score 1) 661
What would be great if C++ gets member function pointers to make things like:
button.onClick = myObject.handleClick;
(Delphi has this sort of event handling)
At the moment you have to play with ugly templates (see gtkmm/sigc++) or you have to make language extensions like Qt does with Signal/Slots.
If C++ would have easy member function pointers (without scary syntax) it would be possible to make nice GUI toolkits in it. The Qt-way is good but not standard... MFCs and wxWidgets way of event handling are ugly C macro dispatch tables, afaik...
Easy member function pointers -> please put it in! :-)
button.onClick = myObject.handleClick;
(Delphi has this sort of event handling)
At the moment you have to play with ugly templates (see gtkmm/sigc++) or you have to make language extensions like Qt does with Signal/Slots.
If C++ would have easy member function pointers (without scary syntax) it would be possible to make nice GUI toolkits in it. The Qt-way is good but not standard... MFCs and wxWidgets way of event handling are ugly C macro dispatch tables, afaik...
Easy member function pointers -> please put it in!