LPC Library Functions: functions

NAME

functions() - return the functions in a given object

SYNOPSIS

mixed *functions( object, int flag | void );

DESCRIPTION

Returns a list of the functions defined in the object 'ob'. If the optional parameter 'flag' is zero, an array of strings containing the function names is returned.

If the optional parameter 'flag' is non-zero, functions() returns an array of arrays in the form:

  ({
    ({ fun1_name, fun1_num_of_args, fun1_return_type }),
    ({ fun2_name, fun2_num_of_args, fun2_return_type }),
    ({ fun3_name, fun3_num_of_args, fun3_return_type }),
    ...
  })

Note that this efun is only available if the driver flag PACKAGE_CONTRIB is defined.

SEE ALSO

variables()
Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS