From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,34c2aa33b8bdb1a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-14 08:31:27 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!news100.world-online.no!news100.world-online.no!nntp.newmedia.no!news.powertech.no!uninett.no!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Sugestion to Multiple Inheritance References: <3C3F2B7F.4F077FC0@adaworks.com> <3C3F5186.5030003@mail.com> <3C3FE73C.D633E042@adaworks.com> <3C412BAC.9010301@mail.com> <3C42E418.8B8C694F@brighton.ac.uk> From: Ole-Hjalmar Kristensen Message-ID: <7vn0zg3nln.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Jan 2002 16:27:26 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1011025646 193.216.12.150 (Mon, 14 Jan 2002 17:27:26 MET) NNTP-Posting-Date: Mon, 14 Jan 2002 17:27:26 MET Organization: Tele2 Norway AS Public Access Xref: archiver1.google.com comp.lang.ada:18912 Date: 2002-01-14T16:27:26+00:00 List-Id: John English writes: > Hyman Rosen wrote: > > > > Richard Riehle wrote: > > > Multiple inheritance is just one feature > > > > > I find, if not a disaster, at least, as you say, overly-complicated, > > > and inconvenient. > > > > Actually, the complications are in the compiler, because of technical > > aspects of how objects must behave during their construction. In use, > > MI works for C++ users pretty much exactly as they expect. > > Unless you have a diamond-shaped hierarchy: > A > / \ > B C > \ / > D > in which case you get into the nasty world of virtual base classes > and the assorted surprises that they bring with them. Anyone who > finds that MI works "pretty much exactly as they expect" in this > situation has a better imagination than average, IMHO. I have lots of diamond-shaped hierarchies in my code to implement mixins. It *USUALLY* works as expected by me. Other readers of the code tend to be confused. It is a nice idiom, but can be very confusing for people who have not seen it before. > > ----------------------------------------------------------------- > John English | mailto:je@brighton.ac.uk > Senior Lecturer | http://www.it.bton.ac.uk/staff/je > Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** > University of Brighton | -- see http://burks.bton.ac.uk > -----------------------------------------------------------------