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-20 13:33:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.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: Thu, 20 Dec 2001 15:57:06 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9vtjb3$kdl$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> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1008881827 20917 136.170.200.133 (20 Dec 2001 20:57:07 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 20 Dec 2001 20:57:07 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:18174 Date: 2001-12-20T20:57:07+00:00 List-Id: Seems like a lot of complexity and work to get something that doesn't have much nutritional value anyway. I just barely find it sometimes more useful to say: "X := Integer'Succ (X);" than to say: "X := X + 1;" and I don't think it contributes that much to readability, reliability or anything else. Being able to say: "X := Integer'Succ (X, 2);" doesn't seem to have hardly any value at all and would make ridiculous looking thing such as you cite possible. I just can't remember the last time I wanted to increment by something other than one where a feature like this would be at all useful. Most cases would degenerate into something more generally mathematical anyway. Even in developing C code, I don't find many instances where it is useful to use the "+=" operator to think that somehow my life would be so much easier if only I had something similar in Ada. Why put the compiler writers through all that effort (time that could be spent incorporating a standard container library? :-) unless there's some glaring hole that needs to be filled? When talking about language extensions we probably should remember that the vendor's time can only go so far & we ought to think in terms of priorities so we get the most additional benefit from that time. 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/ "Ted Dennison" wrote in message news:sMrU7.5902$XC5.7817@www.newsranger.com... > > Actually, 'Succ already does this, but it is a function and doesn't have an > amount. Perhaps if it took an amount, this would be sufficient? But then again, > 'Succ works on enumerated types too, which would have us use something > nonsensical like "Month'Succ (Current_Month, February)" to bump the value by 2 > enumerations. >