LPC Library Functions: function_exists

NAME

function_exists() - find the file containing a given function in an object

SYNOPSIS

string function_exists( string str, void | object ob, void | int flag );

DESCRIPTION

Return the file name of the object that defines the function `str' in object `ob'. The returned value can be other than `file_name(ob)' if the function is defined by an inherited object. If 'ob' is omitted, this_object() is assumed.

If the optional argument 'flag' is non-zero, private and static functions are also checked.

0 is returned if the function was not defined.

Note that function_exists() does not check shadows.

SEE ALSO

call_other(), call_out(), functionp(), valid_shadow()

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