Newsgroups: comp.lang.beta,comp.lang.eiffel,comp.object Path: news.daimi.aau.dk!news.uni-c.dk!sunic!trane.uninett.no!eunet.no!nuug!EU.net!sun4nl!news.nic.surfnet.nl!tudelft.nl!dutllu4!nash From: nash@dutllu4.gmd.de (Naresh Sharma) Subject: Re: On why BETA does not have multiple inheritance Message-ID: Lines: 32 Sender: news@news.tudelft.nl (UseNet News System) Nntp-Posting-Host: dutllu4.lr.tudelft.nl Reply-To: Naresh.Sharma@LR.TUDelft.NL Organization: Faculty of Aerospace Engineering, T U Delft X-Newsreader: TIN [version 1.2 PL0] References: <358nrv$bpf@engnews2.Eng.Sun.COM> Date: Sat, 24 Sep 1994 08:20:06 GMT Xref: news.daimi.aau.dk comp.lang.beta:106 comp.lang.eiffel:6245 comp.object:19568 D. Erway (derway@ndc.com) wrote: : >>>>> "Naresh" == Naresh Sharma writes: : Naresh> In C++ you *must* use composition+inheritance for simulating a : Naresh> concept that is actually MI, there is one difference that to have : Naresh> real MI in C++ will be near impossible (if not impossible). : Why not just use MI? Are we talking about the same C++ ?? :) : Don See page 40, Stroustrup, C++ 2nd ed., explicit name resolution has to be specified by the programmer. This is (at a lower level) tackeled by composition+SI, the MI in C++ is fought with problems, the list is enormous. The basic percept that OO technology allows one to extend any concept is not true with C++. The programmer has to be aware of the not only the derived class's interface (derrived.h) as well as that of the super class's interface, if he needs to inherit form super classes as well. I think that operator overloading is a good hack on "c" but it still is a *hack*. It's not clean enough to say that true MI is available in C++. Naresh -- _______________________________________________________________________________ Naresh Sharma [N.Sharma@LR.TUDelft.NL] Herenpad 28 __|__ Faculty of Aerospace Engineering 2628 AG Delft \_______(_)_______/ T U Delft Optimists designed the aeroplane, ! ! ! Ph(Work) (+31)15-783992 pessimists designed the parachute! Ph(Home) (+31)15-569636 Plan:Design Airplanes on Linux the best OS on Earth! ------------------------------PGP-KEY-AVAILABLE--------------------------------