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 autolearn=ham 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-06 19:20:05 PST From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: efficient vector/matrix operations in Ada Organization: RMIT References: <3B6F40C1.FD215D1D@sneakemail.com> User-Agent: MT-NewsWatcher/3.0 (PPC) Date: Tue, 07 Aug 2001 12:18:10 +1000 Message-ID: NNTP-Posting-Host: bundmac.cs.rmit.edu.au X-Trace: 7 Aug 2001 12:17:53 +1100, bundmac.cs.rmit.edu.au Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!vrn.edu.au!mercury.its.rmit.edu.au!dale Xref: archiver1.google.com comp.lang.ada:11435 Date: 2001-08-07T12:18:10+10:00 List-Id: Russ wrote: > Since Ada has no arithmetic assignment operators, are vector/matrix > operations in Ada simply inefficient, or do Ada programmers resort to > tacky, ambiguous expressions like > > PlusEquals(A,B); Tacky it may be, but it doesn't have to be ambiguous, if you use named parameter association... Add (To => A, Item => B); Note that using '+' in C++ can be just as efficient as += by using templates. Dale