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,7dbba1cd16d32bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!newsfeed-0.progon.net!progon.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada OOP syntax 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: <_9adnb1KYvIrW87VnZ2dnUVZ_vOdnZ2d@comcast.com> <2fde321e-7906-4050-a8c1-26069a8d0d65@j33g2000pri.googlegroups.com> Date: Wed, 18 Jun 2008 14:30:55 +0200 Message-ID: NNTP-Posting-Date: 18 Jun 2008 14:30:55 CEST NNTP-Posting-Host: 48d2a2c7.newsspool2.arcor-online.net X-Trace: DXC=;O2lm:dN1Pl_0Po7BmQ3]lA9EHlD;3Ycb4Fo<]lROoRa8kFoQ^PW^[=_lBi X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:758 Date: 2008-06-18T14:30:55+02:00 List-Id: On Wed, 18 Jun 2008 00:48:22 -0700 (PDT), markus034@gmail.com wrote: > Especially, package types and package subtypes are very interesting. > That syntax seems to be clearer than tagged types. I don't understand > why it was rejected? I don't know it. But in my eyes the drawbacks of the proposal are: 1. Impure (not all types have classes, there are methods and non-methods) 2. No multiple inheritance 3. No multiple dispatch 4. Conflating classes and packages (sets of types vs. visibility) 5. Self 6. Operators (multi-methods) are clumsy and have no access to the implementation (a consequence of 1,3,4,5) 7. Re-dispatch (inconsistent, performance hit) 8. Entries are confused with procedures (it is unclear when and if the queue appear) 9. It is unclear (to me) how generic (class-wide) programming is accomplished. Though the Ada 95 model also has some of these problems (and many others too), yet it did not damage the language, because there seem to be ways to fix it. Tagged types are rather an outbuilding. The proposal would be a total rebuild (IMO on the fundament of sand). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de