[Home] [Groups] - Message: [Prev in Group] [Next in Group]
15754: Re: [MUD-Dev] Object Models
[Full Header] [Plain Text]
From: Tony Wooster <twooster@postmark.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Sat, 18 Nov 2000 05:39:45 -0800
References: [1]
Organization: Kanga.Nu
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@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev