clean_up(4) MudOS v21c2
(5 Sep 1994)
名稱:
clean_up - 在一個互動的 (interactive) 物件中定期呼叫此函式.
語法:
int clean_up( int inherited );
整數 clean_up( 整數 inherited );
用法:
驅動程式 (driver) 為在一段時間之內沒有活動 (inactive) 的物件呼叫 clean_up()
函式. 此段時間的長短, 定義在執行時段組態檔 (rumtime configuration file)
中. clean_up() 會收到一個旗標 (flag) , 指出此物件是否有別的物件繼承 (inherit)
它. 如果clean_up() 傳回 0, 則此物件將永遠不再呼叫 clean_up(). 如果傳回
1, 則在指定的 clean_up() 延遲時間之後物件仍沒有活動的話, 再呼叫一次 clean_up().
通常一個物件在 clean_up() 中所作的事, 是摧毀自己以節省記憶體.
翻譯:
Spock @ FF 97.Aug.3. (printed 3/16/95)
回到上一頁