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,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: kevin.cline@gmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: 27 Sep 2004 07:35:49 -0700 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 24.1.141.253 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1096295749 2358 127.0.0.1 (27 Sep 2004 14:35:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 27 Sep 2004 14:35:49 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:4271 Date: 2004-09-27T07:35:49-07:00 List-Id: Matthew Heaney wrote in message news:... > kevin.cline@gmail.com (Kevin Cline) writes: > > > Well, if C++ had no operator++ it would be easy enough to write: > > template T preincrement(T& value) > > { > > value = value + 1; > > return value; > > } > > Shouldn't preincrement return T&, not T? Yes, it should.