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.54.179 with SMTP id a48mr7714897qtc.43.1498337404411; Sat, 24 Jun 2017 13:50:04 -0700 (PDT) X-Received: by 10.157.15.209 with SMTP id m17mr348717otd.6.1498337404365; Sat, 24 Jun 2017 13:50:04 -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!m54no482210qtb.1!news-out.google.com!k7ni1419itk.0!nntp.google.com!f20no796247itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 24 Jun 2017 13:50:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.108.152.51; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 213.108.152.51 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <1498048151.20885.28.camel@obry.net> <96174ea5-852d-44e9-8535-7c1eb24d5326@googlegroups.com> <8d3aff06-82df-485f-89e5-a50c326aab05@googlegroups.com> <66aa262e-2ac9-4016-b32d-e9fee14779e1@googlegroups.com> <88e2f18a-0786-4303-a5b8-fe82e8c81dcb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada Annoyances From: Maciej Sobczak Injection-Date: Sat, 24 Jun 2017 20:50:04 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47105 Date: 2017-06-24T13:50:04-07:00 List-Id: > > I see no practical benefit from this. Can you provide some motivating e= xample? >=20 > Dispatch upon object construction. [...] I have asked for a motivating example - that is, something practical, not s= ome incomplete Foo/Bar stub. I still see no benefit. > In C++ you can have T and S parts, plus a language hack that kills=20 > dispatching while there. Wrong. C++ does not kill any dispatching anywhere. Calls to virtual functions from= constructors/destructors are dispatching. The language only makes sure tha= t the dynamic type (that is, the potential range of dispatching calls) foll= ows the already constructed part of the object and is never ahead of it (be= cause that would be unsafe). This is type safety applied in the place where= the effective type of the object changes (!) at run-time. This is not a ha= ck, this is exactly how it should be done. Your example does not show anything that could not be achieved in C++ - in = which case I'm not convinced. --=20 Maciej Sobczak * http://www.inspirel.com