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,d2f0af5e440b367f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-24 23:23:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: proposal for new assignment operators Date: 24 Jun 2003 23:23:39 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1056522219 20148 127.0.0.1 (25 Jun 2003 06:23:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Jun 2003 06:23:39 GMT Xref: archiver1.google.com comp.lang.ada:39704 Date: 2003-06-25T06:23:39+00:00 List-Id: As most of you are aware, several very popular programming languages, such as C, C++, Java, Perl, and Python, have what are called "assignment operators." The most important of these operators are "+=", "-=", "*=", and "/=". On a recent thread, the usefulness of those operators was discussed in detail, so I won't rehash it. 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!