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.157.27.181 with SMTP id z50mr951276otd.149.1498129461119; Thu, 22 Jun 2017 04:04:21 -0700 (PDT) X-Received: by 10.157.60.116 with SMTP id j49mr54627ote.0.1498129461084; Thu, 22 Jun 2017 04:04:21 -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!news.glorb.com!f20no717594itb.0!news-out.google.com!s132ni1674itb.0!nntp.google.com!185no714599itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 22 Jun 2017 04:04:20 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.175.207; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 193.71.175.207 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <1498048151.20885.28.camel@obry.net> <96174ea5-852d-44e9-8535-7c1eb24d5326@googlegroups.com> <98b98b8b-2f56-4d14-9989-3df51b08d97e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8e92cd62-c40e-4fc0-81af-b7626e68b5f7@googlegroups.com> Subject: Re: Ada Annoyances From: Egil H H Injection-Date: Thu, 22 Jun 2017 11:04:21 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47056 Date: 2017-06-22T04:04:20-07:00 List-Id: On Thursday, June 22, 2017 at 12:29:47 PM UTC+2, pyth...@gmail.com wrote: >=20 > In C++ it is potentially more confusing, as something of type T is always= exactly of type T (because it usually lives on the stack and therefore mus= t have a statically known size), but a reference or pointer to T might be o= f a derived type. Whether or not a method is dynamically dispatched using t= he vtable is determined by whether or not the method is marked as virtual. >=20 > While I'm not so sure that I'd go so far to say that the C++ way is broke= n, now that I understand how Ada works a bit better, I would probably agree= that Ada's solution is cleaner. You may find this document useful: http://www.adacore.com/knowledge/technical-papers/ada-for-the-c-or-java-dev= eloper/