[MUD-Dev] Object Models

Tony Wooster twooster at postmark.net
Sat Nov 18 05:39:45 CET 2000


At 06:59 PM 11/16/00 -0500, you wrote:
>On Thu, 16 Nov 2000, J C Lawrence wrote:
>
> > What you are talking about is called "multiple inheritance".  It is
> > not an entirely trivial topic, and in fact has a number of very ugly
> > aspects.  Its worth spending some time reading up about multiple
> > inheritance and single inheritance via your favourite search engine.
>
>Question for you guys - when do you actually _need_ multiple inheritance?
>I can't think of an example where one would need multiple inheritance
>which couldn't be elegantly expressed (or at the very least expressed
>without much extra effort) as using regular inheritance with components.
>Can you think of one?

I used to work on a MUD where they'd come up all the time. A room might
or might not have a  door, for example. If it did, you inherited the door
(this was an LPmud) object along with the room object. Otherwise, you just
inherit the room.

Trivial, sure, but there were some more complex issues that came along
as the MUD grew, and coders were less and less educated....


_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list