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,FREEMAIL_FROM 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 08:52:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!spool0902.news.uu.net!not-for-mail Date: Fri, 30 May 2003 11:51:45 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: MI in Ada 200X References: <0Pxza.699607$OV.652508@rwcrnsc54> <4a4de33a.0305280557.5d5aba37@posting.google.com> <9wKBa.1046187$F1.124536@sccrnsc04> In-Reply-To: <9wKBa.1046187$F1.124536@sccrnsc04> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1054309905.915990@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1054309905 15241 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:38109 Date: 2003-05-30T11:51:45-04:00 List-Id: Mark A. Biggar wrote: > 1) does d contain 1 or 2 copies of the fields of a? In C++ you choose, by specifying virtual inheritance or not. > 2) if 2 how do you name them? Do a view conversion to the appropriate base class. > 3) which version of op does d inherit? Neither. Attemping to call op on a d object would be a compile-time error. > 4) the simple implementation (TAG is pointer to vtable, field offsets > remain constant, etc.) becomes much more complicated. Yes, but this is a job for the implementors, which they need to do just once.