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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b375f07e05d12c7a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-13 14:31:01 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!portc01.blue.aol.com!newsrouter.icnc.com!news-out.spamkiller.net!propagator-la!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3B6F40C1.FD215D1D@sneakemail.com> <3B6F5ABC.3C40E189@sneakemail.com> <9f6e2b77.0108100854.66b084b4@posting.google.com> Subject: Re: efficient vector/matrix operations in Ada Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Mon, 13 Aug 2001 17:30:46 EDT Organization: http://www.newsranger.com Date: Mon, 13 Aug 2001 21:30:46 GMT Xref: archiver1.google.com comp.lang.ada:11877 Date: 2001-08-13T21:30:46+00:00 List-Id: In article , Russ says... (talking about matrices with redefined math ops) >Here's how you write "A = B + C + D;" efficiently: > > A = B; > A += C; > A += D; > >really needs arithmetic assignment operators. Sure, you can use >procedures, but they're intent and effect is not as obvious to the >reader. Perhaps to a reader who is *already* familiar with the idiom above that is true. I'm not, and it took me a couple of takes to see what you were doing here (and a bit of thought to figure out why). For someone starting from ground zero, I think the point is quite arguable. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com