Slashdot Mirror


User: chrizel

chrizel's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Member function pointers on Stroustrup on the Future of C++ · · Score: 1

    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! :-)