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,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Thu, 26 Aug 2004 10:14:04 +0200 Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de xSROUXzD0yL7u2FEp2XQLA0dfOSesUbhKFEhuitELmzOQClPw= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:3014 Date: 2004-08-26T10:14:04+02:00 List-Id: On Thu, 26 Aug 2004 05:22:17 GMT, Dave Thompson wrote: > On Tue, 17 Aug 2004 09:50:07 +0200, "Dmitry A. Kazakov" > wrote: >> 1. Ada has specific and class-wide pointers. In C++ all pointers are >> class-wide. Dereferenced class-wide pointers dispatch on member functions. >> In Ada you have a choice. >> > C++ pointers and references are polymorphic, Except that in constructors / destructors... Hyman Rosen would disagree with me, but I believe it was a design fault. IMO the only consistent way is to distinguish specific and class-wide objects as Ada does. > but you can "narrow" them > for a specific call by ptr-> /* or ref . */ base:: method (args). Yes, but that is not a new pointer type. It is just way to circumvent vptr. [ Discussion point: there should be no need to specify the parent type anywhere, except that once in the type declaration. Unfortunately neither Ada nor C++ fulfill that. ] -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de