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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news1.google.com!news.glorb.com!newsfeed-0.progon.net!progon.net!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Inherited Methods and such Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1190039166.449906.15070@g4g2000hsf.googlegroups.com> <1190041908.492024.263110@19g2000hsx.googlegroups.com> <1190060534.958182.51800@d55g2000hsg.googlegroups.com> <87tzptuhku.fsf@ludovic-brenta.org> <1190125656.071013.303640@22g2000hsm.googlegroups.com> Date: Tue, 18 Sep 2007 17:25:28 +0200 Message-ID: <1ds7l1l7oeyrx.1cpsvrpkikour.dlg@40tude.net> NNTP-Posting-Date: 18 Sep 2007 17:20:05 CEST NNTP-Posting-Host: ae0ac9c0.newsspool4.arcor-online.net X-Trace: DXC=DePIFG8Dd7@2:OR3:3gaE@4IUKkgBdBQ33cY=DFB X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:2016 Date: 2007-09-18T17:20:05+02:00 List-Id: On Tue, 18 Sep 2007 07:27:36 -0700, Maciej Sobczak wrote: > On 17 Wrz, 23:07, Ludovic Brenta wrote: > >> No, I meant C++ does not have a notation for Ada's concept of a class. Neither Ada has (I mean a "notation of concept" (:-)). But T& is close to T'Class, and IMO the concept of a class as a set of types [obtained upon inheritance] and a type to represent that set is same in both languages. Ada separates the set and its representative, C++ does not. >> (You may turn it the other way around and say C++ does not have a >> notation for a pointer to a specific type.) > > Then I'll pick that latter option. There is no pointer/reference to a > specific type in C++. "this" within a constructor/destructor? A pointer variable pointing to an object under construction/destruction? I don't know how the C++ standard defines this, as implementation-dependent, or else as erroneous or else as "specific" (in Ada terms). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de