[DGD] Re: function_object
harte at xs4all.nl
harte at xs4all.nl
Tue Oct 7 01:33:35 CEST 1997
Quoting your message from 6 Oct:
|
| Greetings.
| I have been working on a hook system for a mudlib. The object wishing to
| place a hook calls an add_hook function with arguments of itself (the
| object) and the function to call. When stepping through the array of
| hooks, I would like to detect any objects that no longer exist (and did
| not clean up by removing the hook) before doing the call other. Is the
| function_object kfun the best way to do this, or can I count on the stored
| reference to the object being updated to 0 after the object is gone i.e.
| would
| if (!obj) be sure to work.
Using function_object() on a destructed would give you errors, but
anyway, the check 'if (!obj)' would work, yes.
Erwin.
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list