| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]

# Method function_object()

Method function_object

  `object function_object(function f)`

Description

  Return the object the function f is in.

  If f is a global function defined in the runtime `0` (zero) will be returned.

  Zero will also be returned if f is a constant in the parent class. In that case function_program() can be used to get the parent program.

See also

  function_name() , function_program()