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,d2f0af5e440b367f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-25 12:45:20 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: proposal for new assignment operators From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Wed, 25 Jun 2003 20:44:06 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1056570319 80.195.75.181 (Wed, 25 Jun 2003 19:45:19 GMT) NNTP-Posting-Date: Wed, 25 Jun 2003 19:45:19 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:39738 Date: 2003-06-25T20:44:06+01:00 List-Id: On 25/6/03 07:23, in article bebbba07.0306242223.1f86b3f7@posting.google.com, "Russ" <18k11tm001@sneakemail.com> wrote: > One of the problems with adding these operators to Ada is that "/=" is > already used for "not equals." So I suggested that the Ada version of > these operators could be ":+", ":-", ":*", and ":/". I did not get > much of a reply, but I think it's an idea worth considering, so I am > repeating it here. > > These operators would be consistent with the ":=" assignment operator > of Ada, and I don't think they conflict with any established Ada > operator. I actually think they make *more* sense than the usual "+=" > type operators. Consider, for example, > > count :+ 1 > EulerAngles :* D2R > > I'm wearing my asbestos underwear, so have at it! Russ, you missed the point of my previous reply to this proposal. Your syntax is *in*compatible with the co-existence of the '=' operator and the ':=' assignment symbol. In your proposal, x :? y, for some operator ?, means: "x is assigned the value of (x ? y)". I now ask, what does a := b mean when a and b are Boolean? Does it assign (a = b) to a, or does it assign b to a? -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")