• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(Off topic - a bit) This is not an apology!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(Off topic - a bit) This is not an apology!


  • Subject: (Off topic - a bit) This is not an apology!
  • From: "Smith, Bradley" <email@hidden>
  • Date: Tue, 11 Dec 2001 14:59:36 -0000

Okay, my latest development is a system for reverse engineering C++, Ada, C
and Java into a UML modeling tool. My design has multiple inheritance. This
is not a problem in and of itself IMHO. However, the development has to be
done in C++ (it's targetted for the "other" OS) and the C++ implementation
of multiple inheritance is a nightmare. It's just a series of hacks to get
around the problem. Virtual base classes here, downcasting there...
Horrible!

Now, my question to the group (and there was a similar question a while back
that caused a bit of a flame war so let's not go there again) is: -

Given that We're (mostly) Obj-C programmers here and don't have multiple
inheritance at our disposal, how (given that in design terms multiple
inheritance is valid) do you work around a language's lack of support for
it? Do you redesign to eliminate teh MI? If so, how? Or, do you accept that
the design is valid and just implement it differently? Ondra, feel free to
comment - I promise not to attack (unless severely provoked) ;-)

Regards
Brad

P.S. Remember, I have to use C++. Obj-C isn't an option and I guess off-list
replies might be in order.


  • Follow-Ups:
    • Re: (Off topic - a bit) This is not an apology!
      • From: Ondra Cada <email@hidden>
    • Re: (Off topic - a bit) This is not an apology!
      • From: Donald Brown <email@hidden>
  • Prev by Date: Re: Damn sisters :-)
  • Next by Date: Re: How to design a good application?
  • Previous by thread: Re: Starting the screensaver from code
  • Next by thread: Re: (Off topic - a bit) This is not an apology!
  • Index(es):
    • Date
    • Thread