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,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: why learn C? 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> <1btkgzzj6zimp.acsq8mkzqz1w$.dlg@40tude.net> <1175488143.324741.283480@y80g2000hsf.googlegroups.com> From: Markus E Leypold Organization: N/A Date: Tue, 03 Apr 2007 02:16:24 +0200 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:Kdk6lo7XuJPNJwmfCsJF180gcbQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.209.234 X-Trace: news.arcor-ip.de 1175558960 88.72.209.234 (3 Apr 2007 02:09:20 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news1.google.com!news2.google.com!news1.google.com!proxad.net!news.cs.univ-paris8.fr!newsfeed.vmunix.org!newsfeed.hanau.net!news-fra1.dfn.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news1.google.com comp.lang.ada:14780 Date: 2007-04-03T02:16:24+02:00 List-Id: "kevin cline" writes: > On Mar 30, 4:09 am, "Dmitry A. Kazakov" > wrote: >> 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. > > So what? The discussion was about compile-time type safety, and the > point is that C++ templates, being Turing complete, allow more > thorough compile type checking than is possible in Ada. I fail to see what the one has to do with the other. Indeed, I'd rather not write my own type checker in a lispish compile time language. Regards -- Markus