|
![](/i/fill.gif) |
Orchid Win7 v1 <voi### [at] dev null> wrote:
> > I have never quite understood the reason why C++ and Eiffel seem to be
> > the only programming languages in existence that support multiple
> > inheritance, while the rest of OO languages only support a highly
> > crippled version of it.
> I have to admit, Eiffel /does/ make the solution look very, very
> complicated. (I can't actually remember off-hand how the heck C++ does
> it...)
Does what?
> I would have thought the indirect code jump is probably far more
> expensive than the space overhead.
The additional space consumption is significant if you have eg. a class
that would otherwise be the size of a pointer (and you need to instantiate
millions of them). If you had forced virtual functions, it would double in
size.
> Yeah, I don't know. I'm slowly coming around to the idea that maybe we
> should forget about all this "inheritance" stuff and focus on interfaces
> as the primary thing of interest...
How would you implement a GUI library without using any kind of inheritance?
> > But you should be liking C#. It doesn't leak memory and if it crashes, it
> > tells you where and why. Probably.
> The same can be said of Java. Last time I checked, there's no shortage
> of people who want to do violent things to Java. (I believe your name is
> on that list, for example...)
But C# shouldn't have the same problems as Java. Mostly.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |