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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dbcfe2b0a74da57e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.astraweb.com!border1.a.newsrouter.astraweb.com!feeder2.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Inherited Methods and such References: <1190039166.449906.15070@g4g2000hsf.googlegroups.com> <1190041908.492024.263110@19g2000hsx.googlegroups.com> <1190060534.958182.51800@d55g2000hsg.googlegroups.com> Date: Mon, 17 Sep 2007 23:07:13 +0200 Message-ID: <87tzptuhku.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:YIvrB9d8sOCYMksiodAqU9Jix2g= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=an8dQ5oV2cCOFamGDgl`YA6`Y6aWje^YJb[mYGF= Maciej Sobczak writes: > On 17 Wrz, 17:11, Ludovic Brenta wrote: > >> If you come from C++: >> >> class -> tagged type > > Not really. Tagged type is analogous to a polymorphic class in C++ (a > class that has at least one virtual function). So, you are saying that class foo { }; is not a class in C++? >> * -> class > > You mean pointer or reference to the base class in C++ is analogous to > the class-wide type in Ada (roughly - in C++ they are have always > referential, not copy semantics). No, I meant C++ does not have a notation for Ada's concept of a class. (You may turn it the other way around and say C++ does not have a notation for a pointer to a specific type.) >> namespace -> package (very roughly) > > OK (very roughly). :-) > >> virtual method -> primitive operation > > OK. > >> static method -> class-wide operation > > Not really. Class-wide operation in Ada is similar to non-virtual > function in C++. I stand corrected. The last time I wrote any C++ was back in 2001 :) -- Ludovic Brenta.