home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!celia!gray
- From: gray@celia.UUCP (Steve Gray)
- Newsgroups: comp.lang.c++
- Subject: Re: Multiple Inheritance - Necessary?
- Keywords: c++ inheritance
- Message-ID: <2119@celia.UUCP>
- Date: 23 Nov 92 23:26:10 GMT
- References: <By17An.4uH@usenet.ucs.indiana.edu> <24263@alice.att.com>
- Reply-To: celia!gray@usc.edu (Steve Gray)
- Organization: Rhythm & Hues, Inc., Hollywood
- Lines: 14
-
- One of the problems with multiple inheritance is that is makes run-time
- binding of messages (which of course, you can't do in C++) more difficult.
-
- We currently are writing in C++ using a run-time message binding layer on
- top of it. We disallow multiple inheritance in classes which use the
- run-time layer.
-
- Another disadvantage of allowing mulitple inheritance is that you can not
- have a "propagateToParent" operator (since the definition of parent is
- ambiguous). This is an incredibly useful operator (I know you can cheat
- it in C++...but it's not as clean).
-
- However, having said all of this, there are times when I wish I could use
- multiple inheritance rather than combination to produce hybrid classes.
-