Re: (Off topic - a bit) This is not an apology!
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