[DGD] Dynamic inheritance

Felix A. Croes felix at dworkin.nl
Sat Dec 22 16:55:31 CET 2001


"Risto Karjalainen" <risto.karjalainen at pp1.inet.fi> wrote:

> I've been thinking of possible solutions for dynamic objects. By dynamic
> objects I mean objects whose type can be altered arbitrarily on the fly, for
> example changing a sword into a door, or even making it be both. One
> possible solution would be to have an object inherit all the possible type
> objects and have flags determine the type(s) of the object, then simply
> cloning everything from it. But I think storing data that might never be
> used is an outrageous waste of resources.
>
> I also thought of another possible solution, which I call dynamic
> inheritance. It would allow the adding and removing of programs that the
> original object inherits without destructing or recompiling it, having
> effect only on the desired clone, not all the clones. This way I could alter
> the object very easily and almost limitlessly. Althought there might be
> drawbacks and inconsistences that haven't occured to me. Are there?

You are aware that it is possible to recompile an object without first
destructing it, and that different inherited objects may be added or
removed this way?

Regards,
Dworkin
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list