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,1592759aa83d0d45 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 07:04:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: MI in Ada 200X Date: Fri, 30 May 2003 14:04:25 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <0Pxza.699607$OV.652508@rwcrnsc54> <4a4de33a.0305280557.5d5aba37@posting.google.com> <1054299592.913465@master.nyc.kbcfp.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1054303465 21716 217.17.192.37 (30 May 2003 14:04:25 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Fri, 30 May 2003 14:04:25 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:38096 Date: 2003-05-30T14:04:25+00:00 List-Id: * Georg Bauhaus wrote: > Hyman Rosen wrote: >: Karel Miklav wrote: >: > What do you think about the diamond problem and other evils of MI? >: >: What diamond problem? > > Parhaps > > class A { > public: > virtual int foo() = 0; > }; > > class A1 : public A { public: virtual int foo(); }; // from library 1 > class A2 : public A { public: virtual int foo(); }; // from library 2 > > class B : public A1, A2 { You may stop here and ask for B.foo(). > public: > virtual int bar(); > }; > > int B::bar() { foo(); } // which foo() here?