You could also create signal handling objects, with whatever state you like:
class button_handler(string name)
{
void `()(mixed ... args) {
/* ... */
}
}
widget->signal_connect("pressed", button_handler("button 1"));
Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum Sun, 12 Sep 2010 07:40:17 -0700
You could also create signal handling objects, with whatever state you like:
class button_handler(string name)
{
void `()(mixed ... args) {
/* ... */
}
}
widget->signal_connect("pressed", button_handler("button 1"));