Fw: Re: [DGD] Question concerning inheritance
Noah Gibbs
noah_gibbs at yahoo.com
Wed Apr 16 20:10:25 CEST 2008
Partly, it depends how you store the information. You can keep data
structures in your ObjectD (or equivalent) that aren't in the objects
themselves, like arrays or hashes. Then you only need to load the bookkeeping
information for a lot of objects, not the objects themselves.
Also, even if you keep the bookkeeping information in the objects (as the
Kernel lib does with its linked object lists), normally your inheritance tree
will branch very strongly. Skotos has a single object type, their simple
physical object, which is something like 95% of their total memory usage. Your
MUD is likely to be similar. You normally won't ever need to load in any of
those objects or their bookkeeping information because nothing inherits from
them. Usually, there are only a few library classes that you'll see
inheritance from, and loading in all of *those* isn't nearly as bad.
--- Carter Cheng <carter_cheng at yahoo.com> wrote:
>
> Well this is a from scratch project and currently I do not have an equivalent
> to an objectd in the system though I intend to add it (or something
> equivalent). The information is available to the driver object in dgd but I
> am curious about the order in which the information is returned. I.e.
>
> if A inherits from B and B inherits from C. I attempt to load A it checks in
> the driver if i allow the inherits from B. Obviously I may not know this at
> this point- (or will B always be loaded?) so if B isn't loaded I might have
> to forcibly load B (ad infinitum) to determine the current information for
> this or am I perhaps missing something?
>
> Regards,
>
> Carter.
>
>
>
>
>
____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the DGD
mailing list