Both the listeners (callback object) and callback function pointers are in use in pike-code, the callback function pointer variant is more common, though.
/ Per Hedbor ()
Previous text:
2003-10-09 09:24: Subject: Re: bugs and pop3
Sometimes it is useful. Some examples:
I would use threads for these examples... But ok, i agree it could be useful in certain cases. I will see how to do it properly.
In pike, do you rather use callback methods, or object inheritance (like interfaces in java) ? rather than having, say, X callback methods, only one callback object implementing these X methods...
Vincent.
/ Brevbäraren