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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:2712:: with SMTP id n18-v6mr8395837ion.90.1533584004084; Mon, 06 Aug 2018 12:33:24 -0700 (PDT) X-Received: by 2002:aca:eb15:: with SMTP id j21-v6mr462925oih.6.1533584003973; Mon, 06 Aug 2018 12:33:23 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!85.12.16.70.MISMATCH!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!d7-v6no5000084itj.0!news-out.google.com!k71-v6ni5682itk.0!nntp.google.com!g24-v6no5031457iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 6 Aug 2018 12:33:23 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.187.90.130; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 176.187.90.130 References: <72ccb7fa-a9cb-42e6-8c29-3c06da281a45@googlegroups.com> <2212eb54-cb4a-446f-9cdf-287ef220e2c2@googlegroups.com> <1b5a58b2-65b7-4df8-80b5-03e208d249e1@googlegroups.com> <99a9127d-1024-4690-aa1d-8b3026a0f57d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <258b9e90-07e7-477c-99ba-204e328aea11@googlegroups.com> Subject: Re: Ada Distilled by Richard Riehle From: Vincent Injection-Date: Mon, 06 Aug 2018 19:33:24 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3000 X-Received-Body-CRC: 2016608311 Xref: reader02.eternal-september.org comp.lang.ada:54066 Date: 2018-08-06T12:33:23-07:00 List-Id: Le samedi 28 juillet 2018 17:41:53 UTC+2, Dmitry A. Kazakov a =C3=A9crit=C2= =A0: =20 > Ada 95 never had methods nested in type declaration. (Ada 83 did this=20 > error for protected objects and tasks, but the lesson was learned) What is the problem with methods nested in type declaration ? It seems to me that with the Ada95 OO style, we have awful "freezing rules"= , and less visibility of which operation is dispatching and which is not. > Yes, Ada's OO model is the only correct one, IMO.=20 > The concept of operations nested class type declaration is evident garbag= e in the light of MD.=20 But that's a paradox since as you mentioned, this Ada model is not able to = deal with MD ! In both cases (in Ada and in languages that nest methods in types) one need= s to deal with multiple dispatch "at hand" by an ad hoc procedure that uses= class wide arguments and test them. For the obvious reason that there is n= o evident ordering of a pair of elements, event if each element is ordered. Regards, Vincent