[DGD] Memory management
Jay Shaffstall
jshaffst at netwalk.com
Tue Mar 19 22:16:22 CET 2002
>There are two types of objects, persistent (regular) objects, and the
>so-called lightweight objects a.k.a LWOs. LWOs are created using the
>new_object() kfun and will disappear automatically, whereas regular
>objects are created using compile_object() for standalone objects and
>clone base-objects, clone_object() for clones, and zapped into
>oblivion using destruct_object().
Okay, to make sure I'm understanding correctly...the persistent objects
(what's used in the kernel mudlib) must be explicitly destroyed. Even if
they have no references, they will not be garbage collected. LOWs, on the
other hand, function in a garbage collected environment, disappearing only
when all references are gone.
Is that right?
Thanks,
Jay
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list