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,604e0f87aa06eab6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-26 05:35:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Imitation is the sincerest form of flattery Date: Wed, 26 Mar 2003 14:35:52 +0100 Message-ID: References: <4dkea.75440$gi1.38045@nwrdny02.gnilink.net> <5115eb96.0303220201.44527637@posting.google.com> <5115eb96.0303232053.2fcc7d78@posting.google.com> <5115eb96.0303242148.57027600@posting.google.com> <6Y_fa.5102$kU.534@nwrdny01.gnilink.net> <5115eb96.0303252348.5af58c61@posting.google.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1048685753 79059062 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:35722 Date: 2003-03-26T14:35:52+01:00 List-Id: On 25 Mar 2003 23:48:40 -0800, amir@iae.nsk.su (Amir Yantimirov) wrote: >Exactly. Only in my C++ head it is sounds as "address of particular >interface dispatch routine" instead of "tag". :) Which is not the same. Tag is not an address of a routine. In C++ it might be a pointer to a list of such addresses. But even this becomes wrong in case of multiple dispatch. That's when the dispatch table of a routine is mutli-dimensional and tags have to be mapped to the indices of the table. The point is that because Ada differentiates X / access X and X'Class / access X'Class types it is possible (*) to strip the tag away from a specific object or pointer. Thus to make a type "tagged" would cost absolutely nothing as long as no class-wide objects / pointers and routines are used. (*) If redispatch would be disallowed someday. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de