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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 10:13:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 30 May 2003 12:13:11 -0500 Organization: LJK Software Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED41344.7090105@spam.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1054314705 7137 192.135.80.34 (30 May 2003 17:11:45 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 30 May 2003 17:11:45 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:38121 Date: 2003-05-30T12:13:11-05:00 List-Id: In article , Stephen Leake writes: > 18k11tm001@sneakemail.com (Russ) writes: > >> > Occasionally I run into code that looks something like: >> > >> > production_total( total_class ).shift( shift_index ) := >> > production_total( total_class ).shift( shift_index ) + count; >> > >> > That would read a lot cleaner as: >> > >> > production_total( total_class ).shift( shift_index ) += count; >> >> Couldn't have said it better myself. > > What is wrong with having a style guide that says: > > "If you have statements like > production_total( total_class ).shift( shift_index ) := > production_total( total_class ).shift( shift_index ) + count; > > you must write an appropriate Increment function, and use it instead" > > Problem solved; no need for language change or compiler support. Alternatively, would a renaming declaration work ?