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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-17 07:16:00 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!spool.news.uu.net!not-for-mail Date: Fri, 17 Oct 2003 10:15:22 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: += in ada References: <3F7316F7.219F@mail.ru> <17cd177c.0310010606.52da88f3@posting.google.com> <3F8BC74F.2CFBFF37@0.0> <1066312000.671303@master.nyc.kbcfp.com> <1066322883.139702@master.nyc.kbcfp.com> <3F8F372D.9040801@comcast.net> In-Reply-To: <3F8F372D.9040801@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1066400123.238640@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1066400123 10625 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:1076 Date: 2003-10-17T10:15:22-04:00 List-Id: Robert I. Eachus wrote: > Which makes Ada better for most common CPUs today, right? No, you are forgetting that these operators are intended to be defined for all sorts of types, where the temporaries may be very large data structures, such as matrices. Anyway, I'm not an Ada programmer, so I don't really care if Ada has these operators or not. If I had to do stuff like this in Ada, I would just write the appropriate procedures and be done with it. In C++, I use these operators all the time. I just did a quick search through the source code we've added to out trading system and counted around 500 uses of augmented assignment operators (+=, -=, *=, /=), and yes, we actually do have a few cases of /=. We also have a few of those complicated left-hand sides that people talk about; here's one: (*fxMap)[exposure.secCurr.id().get_key()] += exposure.secExp;