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.13.254.131 with SMTP id o125mr2385339ywf.56.1437569585674; Wed, 22 Jul 2015 05:53:05 -0700 (PDT) X-Received: by 10.140.21.74 with SMTP id 68mr43105qgk.16.1437569585657; Wed, 22 Jul 2015 05:53:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!z61no2604704qge.0!news-out.google.com!4ni81757qgh.1!nntp.google.com!69no1241511qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 22 Jul 2015 05:53:05 -0700 (PDT) In-Reply-To: <1gsux33dqvjbp$.h0prf7p7g2vn.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.30.132.97; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 185.30.132.97 References: <29dd5458-f9ce-4db8-9128-8ab35a9ce5f8@googlegroups.com> <64bc671c-72e5-4924-b703-3b907c69949c@googlegroups.com> <877fq9uj6g.fsf@theworld.com> <65061686-5c8f-433b-9b11-9e228298158e@googlegroups.com> <87k2u96jms.fsf@jester.gateway.sonic.net> <06f8a6f9-d219-4d40-b9ac-8518e93839bd@googlegroups.com> <87y4io63jy.fsf@jester.gateway.sonic.net> <7a29d3e9-d1bd-4f4a-b1a6-14d3e1a83a4d@googlegroups.com> <87mvz36fen.fsf@jester.gateway.sonic.net> <2215b44f-8a89-47c6-a4c4-52b74d2dac45@googlegroups.com> <9e492c82-868d-43d3-a18a-38274400e337@googlegroups.com> <40184feb-4053-4ac3-8eaa-c3bd9cd8a77c@googlegroups.com> <10272577-945f-4682-85bc-8ad47f3653ae@googlegroups.com> <87si8i81k2.fsf@atmarama.net> <1gsux33dqvjbp$.h0prf7p7g2vn.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5eef3ebe-0331-4b73-8fcb-c97cf5b6b9ee@googlegroups.com> Subject: Re: If not Ada, what else... From: Vincent Injection-Date: Wed, 22 Jul 2015 12:53:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:26979 Date: 2015-07-22T05:53:05-07:00 List-Id: Le mardi 21 juillet 2015 21:51:39 UTC+2, Dmitry A. Kazakov a =E9crit=A0: > On Tue, 21 Jul 2015 19:51:29 +0100, Simon Wright wrote: >=20 > > Niklas Holsti writes: > >=20 > >> On 15-07-21 19:24 , David Botton wrote: > >>>> if you checked the status of Modula-2 R10? > >>>> (https://bitbucket.org/trijezdci/m2r10) > >>> > >>> My hobby interest for the front end is about Ada (perhaps fixing the > >>> OO syntax, but still Ada). > >> > >> If you remove "tagged", as you said in another post, in my opinion it > >> is no longer Ada (post 95). > >=20 > > abstract class type A is > > procedure P1 (This : in out T) is abstract; > > end A; > >=20 > > class type T is new A with > > overriding procedure P1 (This : in out A); > > not overriding function F1 (This : A) return Integer; > > private > > V : Integer; > > end T; > >=20 > > etc etc; not a million miles from Ada as we know it. >=20 > Conceptually it is. Operations do not belong to types. But ARM, says : --- 3.2 Types and Subtypes Static Semantics 1 A type is characterized by a set of values, and a set of primitive operat= ions which implement the fundamental aspects of its semantics. An object of= a given type is a run-time entity that contains (has) a value of the type. ---- So for me a type has both a set of values and a set of primitive operations= . A class type is simply a handler, an access or an interface, whatever one calls it, to a class of types where each actual type has at least all of th= e primitive operations of the class. Therefore, I find the above syntax of Simon not completely irrelevant, to s= ay the least :-). >=20 > Then everybody agreed that the syntax of protected objects was a mistake. > Why repeating this flawed syntax for classes? It is again about > fundamentals, privacy is not a type property. It is of a module. Who said that ? Regards, Vincent