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,5af5c381381ac5a7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada requires too much typing! Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <03f84a0a-e070-43a9-9b68-920345f64f94@r27g2000yqb.googlegroups.com> <1c704c1e-1b2e-427f-ae0e-3b2a0f976c7c@y4g2000yqy.googlegroups.com> Date: Wed, 9 Jun 2010 10:10:07 +0200 Message-ID: <14cxhfhcbdmaa$.gp6rbqu5865h.dlg@40tude.net> NNTP-Posting-Date: 09 Jun 2010 10:09:42 CEST NNTP-Posting-Host: 8815f43e.newsspool1.arcor-online.net X-Trace: DXC==RL]mYHIPIQYQ5E:l On Wed, 9 Jun 2010 00:50:17 -0700 (PDT), Maciej Sobczak wrote: > No. The STL classes have no virtual destructors, because they also > have no virtual functions and as such it makes absolutely no sense to > derive from them. > > In other words, they are not intended for polymorphic use. No, they are for parametrically polymorphic use. Templates -> parametric (static) polymorphism Virtual functions -> dynamic polymorphism [ Overloading -> ad-hoc (static) polymorphism ] > Polymorphism > just makes sense for IOStreams and it just does not for containers. Polymorphism is the essence of generic programming = programming in terms of sets of types. That is what STL is all about, per fact and per intent too (see Stepanov's interview). >> Reading the rest of you post I wonder if C++ has given up on being an � >> object orientated language? > > It has not given up anything, as the OO was never the focus. C++ is a > multi-paradigm language, like Ada. It supports OO but does not force > it. I am tempted to re-phrase a saying that multiple opinions on the same issue (paradigms?) manifests freedom when in a society and schizophrenia when in someone's head (language?). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de