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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.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> <1175230700.925143.28490@n59g2000hsh.googlegroups.com> Date: Fri, 30 Mar 2007 11:09:25 +0200 Message-ID: <1btkgzzj6zimp.acsq8mkzqz1w$.dlg@40tude.net> NNTP-Posting-Date: 30 Mar 2007 11:09:25 CEST NNTP-Posting-Host: ad5dfa98.newsspool4.arcor-online.net X-Trace: DXC=n;aTdDdWMFOFJ3]dH>I?oE4IUKkgB7l1gY56`1:F X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:14678 Date: 2007-03-30T11:09:25+02:00 List-Id: On Fri, 30 Mar 2007 07:44:31 +0000 (UTC), Lutz Donnerhacke wrote: > * kevin cline wrote: >> "The big difference is that C++ templates allow type checking during >> compile-time, so that no overhead neither in memory space nor in >> runtime is incurred. In this respect, C++ templates ARE MORE POWERFUL >> than Ada generics." > > This is correct. C++-Templates itself are a Lisp dialect and Turing complete. One should be careful with such statements. In fact it is apples and oranges, because whatever power templates might have, they are *not* executed on the target machine. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de