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,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-19 16:50:15 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: += in ada Date: 19 Oct 2003 19:50:14 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3F7316F7.219F@mail.ru> <49cbf610.0310070205.2937e71a@posting.google.com> <49cbf610.0310101231.2358762a@posting.google.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1066607414 19250 192.74.137.185 (19 Oct 2003 23:50:14 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 19 Oct 2003 23:50:14 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:1158 Date: 2003-10-19T19:50:14-04:00 List-Id: "Chad R. Meiners" writes: > "Russ" <18k11tm001@sneakemail.com> wrote in message > news:bebbba07.0310141000.681da5c@posting.google.com... > > The only rational reply I have received so far is that augmented > > assignment operators are too much effort to implement. Well, they > > obviously weren't too much effort for C, C++, Java, Perl, and Python. > > It's really too bad that Ada is so strapped for support. That obvously > > doesn't bode well for the future of Ada. > > Could you please explain why a generic package that defines augmented > assignment procedures for a numeric type (Add, Subtract, Multiply, Divide) > is not sufficient? Because you have to instantiate the doggone thing for every integer type where you might want to do Add. And you have to anticipate which types those are, or else do it when it's unnecessary. It leads to a lot of useless (unreadable) clutter in the code. So nobody bothers with that; we all just write X := X + 1, even when X is slightly complicated. - Bob