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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: kevin.cline@gmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: 28 Aug 2004 07:17:24 -0700 Organization: http://groups.google.com Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> <1093634083.931713@master.nyc.kbcfp.com> NNTP-Posting-Host: 170.215.185.96 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1093702645 30526 127.0.0.1 (28 Aug 2004 14:17:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 28 Aug 2004 14:17:25 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3116 Date: 2004-08-28T07:17:24-07:00 List-Id: Hyman Rosen wrote in message news:<1093634083.931713@master.nyc.kbcfp.com>... > Kevin Cline wrote: > > A single C++ template function call like this one: > > merge(c1.begin(), c1.end(), c2.begin(), c2.end(), c3.back_inserter()); > > would require half a dozen lines of Ada just for the function instantiation. > > No fair picking an easy one. Suppose you have a vector of complex numbers and > want to set the real part of each to zero. That's far from a one liner in C++ > even though it's conceptually trivial. With boost::lambda, it would be a one liner: for_each(v.begin(), v.end(), _1.r = 0);