variables |
Discworld driver help |
variables |
Name
variables() - list all the variables in a given object
Synopsis
string *variables( object ob, int flag );
Description
variables() can return two different things. If `flag' is 0 (which it is by default) it will return an array containing the names of all the variables in the object `ob'. If `flag' is non-zero, more information about each variable is given. For a non-zero second argument, each array element contains the following:
({ variable_name, variable_type })
Where variable_name is the name of the given variable, and variable_type is the type of the variable, such as "string" or "private int" etc.