Topic: vendor extensions (closures)


Author: mw@ipx2.rz.uni-mannheim.de (Marc Wachowitz)
Date: 4 Mar 1994 12:12:48 GMT
Raw View
Function closures are a nice thing to have, but if the interface for
callback functions is designed for OOP, one can easily simulate it -
simply provide a callback object instead of a callback function. The
object can (via subclassing) contain all desired information for use
by its callback method.

------------------------------------------------------------------------------
   *   wonder everyday   *   nothing in particular   *   all is special   *
                Marc Wachowitz <mw@ipx2.rz.uni-mannheim.de>