function_exists(3) MudOS v21c2
(5 Sep 1994)
名稱:
function_exists() - 找出含有指定函式的檔案.
語法:
string function_exists( string str, object ob );
字串 function_exists( 字串 str, 物件 ob );
用法:
傳回定義有函式 str 之物件 ob 的檔案名稱. 如果函式 str 是被定義在 ob
所繼承的物件中, 傳回的檔案名稱可能會與 file_name( ob ) 傳回的不同.
如果物件 ob 中沒有定義函式 str 則傳回 0.
注意, function_exists() 不會檢查 ob 的投影物件 (shadows).
參考:
翻譯:
Spock @ FF 97.Feb.12. (printed 3/16/95)
回到上一頁