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-20 09:00:06 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: += in ada Date: Mon, 20 Oct 2003 11:58:51 -0400 Organization: Michigan State University Message-ID: References: <3F7316F7.219F@mail.ru> <17cd177c.0310010606.52da88f3@posting.google.com> <3F8BC74F.2CFBFF37@0.0> <1066312000.671303@master.nyc.kbcfp.com> <1066322883.139702@master.nyc.kbcfp.com> <3F8F372D.9040801@comcast.net> <1066400123.238640@master.nyc.kbcfp.com> <1066654831.617492@master.nyc.kbcfp.com> NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:1206 Date: 2003-10-20T11:58:51-04:00 List-Id: "(see below)" wrote in message news:BBB9AF46.60D16%yaldnifb@blueyonder.co.uk... > On 20/10/03 14:00, in article 1066654831.617492@master.nyc.kbcfp.com, "Hyman > Rosen" wrote: > > > It's not the whole system, for which we don't have source, > > just the add-ons we ourselves have written. There's about > > 70000 lines of non-header C++ code, with 500 op= uses and > > about 1125 uses of ++ or --. > > Interesting. > > I grepped about 14_000 lines of my own Ada code (including specs) and found > about 100 potential uses of += 1, a ratio of 1 per 140 lines of source. > Hyman's ++ figures indicate a ratio of around 1 per 60 lines. I suspect that > automatic incrementing in Ada for-loops accounts for a good part of the > difference. That or difference in purpose. Business software tends to like accumulation ;-) -CRM