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-Thread: 103376,342dcd67e9ca73ee X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Tue, 13 Sep 2005 14:28:46 -0500 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: tagged record child: override constructor? References: <1126591134.797303.318920@z14g2000cwz.googlegroups.com> <1uri5gd2n7om0.1ujkzb26ayxdx.dlg@40tude.net> <1126625009.709876.226260@f14g2000cwb.googlegroups.com> <225337460.SlYKbeB8eD@linux1.krischik.com> Date: Tue, 13 Sep 2005 21:29:06 +0200 Message-ID: <87vf14him5.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:uhI4Ehic9z5swCxWladjCzv5Hro= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.243.143 X-Trace: sv3-OYLmn/aob0wZD8LPMQiLIpvRH1Y25cP24zZlbmpzZgBqrhMM1TGGSmZ9D1sNGTnxslt9DTtNCbtJfki!FTMiUzFQG4lJoGzxTASMS/d0ghWAx8dqZRtksJJ54m7iO+NsuyBkncMb7Qu6KwRrVkUgD2iEAR0= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:4626 Date: 2005-09-13T21:29:06+02:00 List-Id: Martin Krischik writes: > That's because all class members are virtual in Ada. I think this needs to be elaborated on. All _primitive operations of a tagged type_ are _potentially_ "virtual" in Ada. Each caller of such a primitive operation decides, at the call site, whether the dispatching is static or dynamic. In contrast, in (my recollection of) C++, all virtual methods dispatch dynamically from all call sites: the decision is not made at the point of call but at the point of definition of the method. -- Ludovic Brenta.