functionp - determine whether or not a given variable is a function pointer int functionp( mixed arg ); Return nonzero if `arg' is a function pointer and zero (0) otherwise. Function pointers are variables of type 'function' as indicated in the documentation for the type 'function', for example: f = (: call_other, obj, func :); The return value indicates the type of function pointer using the values given in the driver include file "include/function.h".
if (functionp(f) & FP_OWNER_DESTED) { if (functionp(f) & FP_NOT_BINDABLE) error("Function could not be rebound.\n"); f = bind(f, this_object()); } evaluate(f);Tim Hollebeek Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere