home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16811 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.1 KB

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