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,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-16 16:57:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3F8F3077.60402@comcast.net> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: += in ada References: <49cbf610.0310101231.2358762a@posting.google.com> <1066224357.499523@master.nyc.kbcfp.com> <1066231159.711433@master.nyc.kbcfp.com> <1066311805.222491@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.139.183 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc53 1066348677 24.34.139.183 (Thu, 16 Oct 2003 23:57:57 GMT) NNTP-Posting-Date: Thu, 16 Oct 2003 23:57:57 GMT Organization: Comcast Online Date: Thu, 16 Oct 2003 23:57:57 GMT Xref: archiver1.google.com comp.lang.ada:1028 Date: 2003-10-16T23:57:57+00:00 List-Id: Hyman Rosen wrote: > Hmm. Ada is not my primary language. I guess those would be > Add(a, To=>b), Subtract(a, From=>b), etc. as others have said. Actually I find I often create procedure Inc(X: in out Integer); I could also create procedure Dec, or add By with a default of 1, etc. But it just doesn't turn out to be worth the bother. And I think that is the real problem with Russ's rantings. Some where between 98% and all of the benefit of the extended operators in C comes from +=, and that from X += 1; In Ada I write that as Inc(X); and use the same number of keystrokes. True those people who prefer to write X+=1; in C do save two characters, but I refuse to worry about it. -- Robert I. Eachus "Quality is the Buddha. Quality is scientific reality. Quality is the goal of Art. It remains to work these concepts into a practical, down-to-earth context, and for this there is nothing more practical or down-to-earth than what I have been talking about all along...the repair of an old motorcycle." -- from Zen and the Art of Motorcycle Maintenance by Robert Pirsig