ArchWizard

DGD/

source navigation ]
diff markup ]
identifier search ]
file search ]
Version: [ 1.0.a0 ] [ 1.1 ] [ 1.2 ] [ 1.2p1 ] [ 1.2p2 ] [ 1.2p3 ] [ 1.2p4 ] [ 1.2.151 ]

  1 NAME
  2         call_other - call a function in an object
  3 
  4 SYNOPSIS
  5         mixed call_other(mixed obj, string function, mixed args...)
  6 
  7 
  8 DESCRIPTION
  9         Call a function in an object.  The first argument must be either an
 10         object or a string.  If it is a string, call_object() will be called
 11         in the driver object to get the corresponding object.
 12         Only non-private functions can be called with call_other().  If the
 13         function is static, the object in which the function is called must
 14         be the same as the object from which the function is called, or the
 15         call will fail.
 16         Any additional arguments to call_other() will be passed on to the
 17         called function.
 18         In LPC, obj->func(arg1, arg2, argn) can be used as a shorthand for
 19         call_other(obj, "func", arg1, arg2, argn).
 20 
 21 ERRORS
 22         An error will result if the first argument is not an object and not a
 23         string, or if the first argument is a string, but the specified object
 24         is uncompiled.
 25         Calling a function that does not exist, or a function that cannot be
 26         called with call_other() because it is private or static, does not
 27         result in an error but returns the value nil.
 28 
 29 SEE ALSO
 30         kfun/clone_object, kfun/destruct_object, kfun/function_object

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.