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,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: why learn C? 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: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230352.808212.15550@e65g2000hsc.googlegroups.com> <1175236212.771445.135460@y66g2000hsf.googlegroups.com> <1175308871.266257.77460@e65g2000hsc.googlegroups.com> <1175499821.557815.303270@y80g2000hsf.googlegroups.com> <1175511246.9702.24.camel@localhost> Date: Thu, 12 Apr 2007 18:48:34 +0200 Message-ID: <197y0y4xczwm0$.1f1worssp753c.dlg@40tude.net> NNTP-Posting-Date: 12 Apr 2007 18:47:45 CEST NNTP-Posting-Host: 2052f14e.newsspool3.arcor-online.net X-Trace: DXC=kAWFI7fKNeBFJ3]dH>I?oEMcF=Q^Z^V3H4Fo<]lROoRAFl8W>\BH3YBI?:ad:b3M7IDNcfSJ;bb[EIRnRBaCd On Thu, 12 Apr 2007 16:05:00 GMT, Hyman Rosen wrote: > The purely static > types of C++ is what permits automatic instantiation > to work. Having dynamic types is what leads to Ada's > requirement of explicit instantiation. I would say that it is rather named (vs. structural) equivalence which makes explicit instantiation necessary. C++ has types algebra limited to compile-time only expressions. Is it good? I don't think so. Does it imply a need in templates to evaluate some of these expressions? I doubt it. To me generics in a language merely indicate a lack of imagination of the language designers. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de