functions |
Discworld driver help |
functions |
Name
functions() - list all the functions in a given object
Synopsis
string *functions( object ob );
string *functions( object ob, int flag );
Description
functions() can return two different things. If `flag' is 0 or omitted, it will return an array containing the names of all the functions in the object `ob'. If `flag' is non-zero, more information about each function is given. For a non-zero second argument, each array element contains the following:
({ function_name, number_of_arguments, return_type, ... }).
Where the fourth and following elements are the argument types. If the save_types pragma was not in effect when the function was compiled, number_of_arguments will be correct, but no types will be available.