MudOSa4DGD/
MudOSa4DGD/bin/
MudOSa4DGD/data/
MudOSa4DGD/doc/
MudOSa4DGD/doc/driver/
MudOSa4DGD/doc/efun/bitstrings/
MudOSa4DGD/doc/efun/command/
MudOSa4DGD/doc/efun/communication/
MudOSa4DGD/doc/efun/heart_beat/
MudOSa4DGD/doc/efun/interactive/
MudOSa4DGD/doc/efun/inventory/
MudOSa4DGD/doc/efun/living/
MudOSa4DGD/doc/efun/mappings/
MudOSa4DGD/doc/efun/strings/
MudOSa4DGD/doc/efun/uid/
MudOSa4DGD/doc/funs/
MudOSa4DGD/doc/language/
MudOSa4DGD/mudlib/dgd/doc/
MudOSa4DGD/mudlib/dgd/lib/include/dgd/
MudOSa4DGD/mudlib/dgd/lib/std/
MudOSa4DGD/mudlib/dgd/lib/sys/
MudOSa4DGD/mudlib/dgd/log/
MudOSa4DGD/mudlib/log/
MudOSa4DGD/mudlib/std/include/
MudOSa4DGD/mudlib/std/obj/
NAME
	destruct_object - destruct an object

SYNOPSIS
	void destruct_object(object obj)


DESCRIPTION
	Destruct the object given as the argument.  Any value holding the object
	will immediately change into 0, and the object will cease to exist.
	If an object destructs itself, it will cease to exist as soon as
	execution leaves it.  If the last reference to a master object is
	removed (including cloned objects and inheriting objects), the
	function remove_program(objname) will be called in the driver object.

        The destructor function destroy() will be called in the object prior
        to destruction. If config.h defines MUDOS_INVENTORY, all objects in
        the inventory will be called as argument in master() with the
        function destruct_env_of(ob). If the Master object does not move the
        objects out of the way, they will be destructed.

ERRORS
	Objects destructing themselves may not do certain things between the
	time of destruction and the time the object will cease to exist.  Most
	notably, call_other() may not be used from destructed objects.

SEE ALSO
	kfun/call_other, kfun/clone_object