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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 15:38:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 4 Jun 2003 15:38:22 -0700 Organization: http://groups.google.com/ Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <6vWcnTWjF83bD0qjXTWcpA@gbronline.com> <3EDCBDF4.1050900@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 1054766303 10037 127.0.0.1 (4 Jun 2003 22:38:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Jun 2003 22:38:23 GMT Xref: archiver1.google.com comp.lang.ada:38650 Date: 2003-06-04T22:38:23+00:00 List-Id: Stephen Leake wrote in message news:... > 18k11tm001@sneakemail.com (Russ) writes: > > > > (And let's not forget that Ada *can* compute the result matrix in-place, > > > just not using the notation you prefer. It's a strange performance-oriented > > > programmer who gives up a factor of 4 for aesthetic reasons.) > > > > But Mr. Duff says that "+=" is just "syntactic sugar" for "Add(A,B)," > > Mr. Duff forgot about the Constraint_Error issues. > > > and Mr. Eachus says "+=" needs a temporary to preserve A in the case > > of a Constraint_Error. > > He's right, since the language defines that behavior. But since _you_ > write "Add", you get to decide what happens for Constraint_Error, so > you _don't_ need a temporary. I think you're missing something here. I would write "+=" too.