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 11:45:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: MI in Ada 200X Date: Fri, 30 May 2003 18:45:41 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <0Pxza.699607$OV.652508@rwcrnsc54> <4a4de33a.0305280557.5d5aba37@posting.google.com> <1054299592.913465@master.nyc.kbcfp.com> NNTP-Posting-Host: d2-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1054320341 7005 134.91.1.15 (30 May 2003 18:45:41 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 30 May 2003 18:45:41 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/831)) Xref: archiver1.google.com comp.lang.ada:38132 Date: 2003-05-30T18:45:41+00:00 List-Id: Lutz Donnerhacke wrote: : * 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(). Has been my intention, but also including the lower corner of the class diamond. Actually the call below does ask for B::foo() afaiks. What is B.foo()? : :> public: :> virtual int bar(); :> }; :> :> int B::bar() { foo(); } // which foo() here? :