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,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-23 00:05:22 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: 23 Sep 2003 00:05:21 -0700 Organization: http://groups.google.com/ Message-ID: References: <3F650BBE.4080107@attbi.com> <3F67AAC6.2000906@attbi.com> <3F6EF608.7010704@attbi.com> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1064300722 6952 127.0.0.1 (23 Sep 2003 07:05:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Sep 2003 07:05:22 GMT Xref: archiver1.google.com comp.lang.ada:42772 Date: 2003-09-23T07:05:22+00:00 List-Id: "Robert I. Eachus" wrote in message news:<3F6EF608.7010704@attbi.com>... > Wes Groleau wrote: > > (Russ insists that A += 1 never needs temporaries > > and that A := A + 1 always does.) > > In pratice on modern hardware this statement is so far from the truth > that it isn't even wrong. Whoa! Are you absolutely sure about that? Are you suggesting perhaps that I'm 360 degrees out of phase with the truth? If so, I say baloney. I'm sure its at least 720 degrees. But at least its not 180. Seriously though, I addressed this matter in an earlier post. First of all, when I discussed the issue of temporaries I was referring to vector/matrix arithmetic, not floats or ints. Secondly, I claim that "+=" (or whatever you wish to call it for Ada) is equivalent to a procedure call, and as such it has no "LHS". Oh, yes, it has a left hand side, but it is not to the left of an assignment operator. Therefore the entire issue of temporaries is no different than if I had used Add ( B, into => A) or some such abomination. I'll say one thing about Ada folks. They're some of the most stubborn folks I've ever had correspondence with. (Funny, my wife says the same thing about me.)