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,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-01 09:28:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshosting.com!news-xfer1.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!spool0900.news.uu.net!reader0902.news.uu.net!not-for-mail Date: Thu, 01 Aug 2002 12:30:50 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Dispatching and generics - language lawyer question References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1028219309.986605@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@mosquito.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1028219311 reader2.ash.ops.us.uu.net 5462 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:27579 Date: 2002-08-01T12:30:50-04:00 List-Id: Dmitry A.Kazakov wrote: > I think that (1) would cause many problems with MI. When tag is a part of > the value and then view conversions are problematic. > There is also redispatch which is IMO incompatible with (1). I think > redispatch must be removed, because when object identification is really > necessary (to redispatch) one could use a solution similar to J.-P. Rosen > trick. C++ uses (1), storing multiple "tags" (actually, virtual table pointers) in the object if necessary, and supports redispatch just fine. The scheme used by the new version of g++ is described at . I doubt that the language designers, assuming they do add MI to Ada, would be so silly as to deliberately choose to implement it in a way that could never be compatible with C++ object layout.