Information Technology - Solutions and Ideas
C++ Explicit Functor
We define a c++11 class, ExplicitFunctor
, which, behaving as a functor, can evaluate arbitrary members of any class. Consider the following use of the class:
Javascript Solution for Appending Handler to Events
Often in Javascript components meant for much larger projects (e.g. Drupal, Joomla, MediaWiki, PmWiki, etc.) it becomes necessary to append functions (event handlers) to some event (which may be non-empty because some other Javascript module might have added handlers to it).