• 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
Re: (Off topic - a bit) This is not an apology!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: (Off topic - a bit) This is not an apology!
  • From: Donald Brown <email@hidden>
  • Date: Tue, 11 Dec 2001 09:25:30 -0600

I'm not generally a fan of Multiple Inheritance, but there are cases where
it is a valid design. So, I'd first look and see, is this something that
really needs multiple inheritance? One alternative, that often works
better, is adding a helper object to the object. In fact, you could add to
the base class the accessor to the helper objects, returning nil. When you
have that helper object, override the accessor to return the object.

Donald

on 12/11/01 8:59 AM, Smith, Bradley at email@hidden wrote:

> 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.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

--
Donald Brown
email@hidden
http://www.eamontales.com

We have met the enemy and he is us - Pogo


References: 
 >(Off topic - a bit) This is not an apology! (From: "Smith, Bradley" <email@hidden>)

  • Prev by Date: Re: How to design a good application?
  • Next by Date: Re: notification AFTER dockMenu is shown
  • Previous by thread: (Off topic - a bit) This is not an apology!
  • Next by thread: Re: (Off topic - a bit) This is not an apology!
  • Index(es):
    • Date
    • Thread