[DGD]Light-weight objects...

Felix A. Croes felix at dworkin.nl
Thu Jun 21 22:23:44 CEST 2001


"Danne Solli" <dan.solli at arrowhead.se> wrote:

> I've read the new_object() manual page. I think I understand what they are,
> but one thing I'd really like  is some real world examples of what they
> can/should be used for... :)

They are intended for abstract datatypes, or more generally, anything
you'd use an object for in a non-MUD object oriented programming language.

For those who are familiar with MudOS, they are an alternative to structs.

For those who are familiar with none of the above: keep programming, and
if you ever get into the position where you want to use arrays in which
each element has a different type, without making the array mixed* -- take
another look at light-weight objects.

Light-weight objects have other uses in combination with normal, persistent
objects.  For example, you could let only the rooms, players and monsters
be persistent objects, and handle all the inventories with light-weight
objects to save a lot of space.

Regards,
Dworkin

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



More information about the DGD mailing list