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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,198c6302c4a0b0d7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-21 10:26:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: was Re: Ada / C++ comparison paper anymore Date: Fri, 21 Dec 2001 12:51:29 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9vvsr1$iek$1@nh.pace.co.uk> References: <3c1dc786@pull.gecm.com> <1008601517.470745@edh3> <1008626816.690418@master.nyc.kbcfp.com> <1008690461.380980@master.nyc.kbcfp.com> <_xRT7.4398$xl6.682759@rwcrnsc54> <3C2374EE.956EF43B@adaworks.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1008957089 18900 136.170.200.133 (21 Dec 2001 17:51:29 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 21 Dec 2001 17:51:29 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:18219 Date: 2001-12-21T17:51:29+00:00 List-Id: One excuse for this sort of counter package would be if you need to control the behavior of the counter's math. Maybe the only good excuse I can think of is if you want the counters to saturate at some min/max level. Back in Ada83, it would have made sense if you wanted wraparound semantics for the counter. (Of course, now that we have unsigned integers, this is not such a big deal.) Otherwise, it would seem to me that it is overkill. And if Ada0x creates some saturated math numeric types, we could get rid of the above case as well... :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Richard Riehle" wrote in message news:3C2374EE.956EF43B@adaworks.com... > > It may seem like a little bit of overkill, but worked out quite well > for the problem at hand. It was useful all through the project > when some kind of counter was needed. It was easy to abuse > its behavior. This is not the kind of shorthand that a += might provide, > but it was no hardship for those using it. >