[DGD]Auto object

Erwin Harte harte at xs4all.nl
Thu May 10 22:41:30 CEST 2001


On Thu, May 10, 2001 at 04:30:53PM -0400, Stephen Schmidt wrote:
> Question: If one is writing a system to run over the kernel lib,
> and one wants a program to be inherited by every object in the
> system (ie, everything in /usr/System, or perhaps better, everything
> in /usr), how does one do that?
> 
> The obvious answer is to do inherit "/usr/System/lib/foobar"
> in every file in /usr/System, but that seems klunky. Another
> obvious answer is to find /kernel/lib/auto.c and add to it
> #include "/usr/System/lib/foobar.c" but that includes it in
> all the kernel files too, which is Bad, and also requires
> modifying the kernel, which is Very Bad.
> 
> Anyone got a better solution?

There's a built-in solution for this in the kernel-lib itself. :-)

Documentation of this feature can be found in

  dgd/mud/doc/kernel/hook/driver

read the section regarding set_object_manager and in particular the
part about include_special().

Erwin.
-- 
Erwin Harte
harte at xs4all.nl

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list