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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.200.55.114 with SMTP id p47mr3415463qtb.23.1498083951926; Wed, 21 Jun 2017 15:25:51 -0700 (PDT) X-Received: by 10.157.51.139 with SMTP id u11mr836890otc.16.1498083951859; Wed, 21 Jun 2017 15:25:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!y44no271091qth.1!news-out.google.com!k7ni1186itk.0!nntp.google.com!185no511588itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 21 Jun 2017 15:25:51 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.114.51.240; posting-account=HN9B-woAAACqJDcuOavWYdk7s1Vm8fv7 NNTP-Posting-Host: 68.114.51.240 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <1498048151.20885.28.camel@obry.net> <96174ea5-852d-44e9-8535-7c1eb24d5326@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada Annoyances From: pythoner6@gmail.com Injection-Date: Wed, 21 Jun 2017 22:25:51 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47051 Date: 2017-06-21T15:25:51-07:00 List-Id: On Wednesday, June 21, 2017 at 4:40:21 PM UTC-4, G.B. wrote: > Not in Ada, like Dmitry explains; in fact, "devirtualization" > isn't really applicable to a language that requires explicit > notation for dynamic dispatch in the first place. What did > your example do? After reading through the thread and some more documentation on Ada, I real= ized that I had a misconception about exactly when dynamic dispatch happene= d: I hadn't quite grasped the difference between T and T'Class. I don't kno= w where the test I wrote went, but my guess is that I found an example of d= oing user defined indexing that used T'Class and copied that. I just tried = something quickly using an indexing function that takes a T instead of T'Cl= ass, and it does appear to not be making a virtual call.