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 Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: why learn C? From: Georg Bauhaus In-Reply-To: <1176506293.926475.137660@e65g2000hsc.googlegroups.com> 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> <6XbPh.4025$u03.802@newssvr21.news.prodigy.net> <1175491660.511530.58430@y80g2000hsf.googlegroups.com> <1175566924.442636.199470@o5g2000hsb.googlegroups.com> <4dr6qpo9b7.fsf@hod.lan.m-e-leypold.de> <1176506293.926475.137660@e65g2000hsc.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1176543530.6698.16.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Date: Sat, 14 Apr 2007 11:38:50 +0200 NNTP-Posting-Date: 14 Apr 2007 10:37:17 CEST NNTP-Posting-Host: a2350d6f.newsspool3.arcor-online.net X-Trace: DXC=R7BM9g3GoKDlU`@c^jLCbJMcF=Q^Z^V3H4Fo<]lROoRAFl8W>\BH3YBa6L?iMj]76JA:ho7QcPOVC4L_ On Fri, 2007-04-13 at 16:18 -0700, kevin cline wrote: > Automatic instantiation allows one to write very powerful libraries in > C++ that are impractical to implement in Ada. For a good example, see > the SPIRIT parser library (http://www.boost.org/libs/spirit/ You've said this in August 2004, and were given your example written in the (technically more powerful) Spitbol pattern matcher of GNAT. Same LOC. Are there new properties of Boost::spirit that have changed the relation? > index.html). So the choice can comes down to hundreds of lines of C++ > or thousands of lines of Ada. Try this: template int more(int y) { return x + y; } int main(void) { int result = 0; for (int p = 0; p < 100; ++p) { result += more

(5); } return result; }