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-Thread: 109fba,cd8ed9115942852f X-Google-NewGroupId: yes X-Google-Thread: 103376,b92b95c9b5585075 X-Google-NewGroupId: yes X-Google-Attributes: gid4f1905883f,gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: Why use C++? Date: Thu, 11 Aug 2011 23:54:34 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <1e292299-2cbe-4443-86f3-b19b8af50fff@c29g2000yqd.googlegroups.com><1fd0cc9b-859d-428e-b68a-11e34de84225@gz10g2000vbb.googlegroups.com><9ag33sFmuaU1@mid.individual.net> <87pqkc6fwj.fsf@ludovic-brenta.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1313124878 5299 69.95.181.76 (12 Aug 2011 04:54:38 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 12 Aug 2011 04:54:38 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Xref: g2news1.google.com comp.lang.c++:82830 comp.lang.ada:20546 Date: 2011-08-11T23:54:34-05:00 List-Id: "Ludovic Brenta" wrote in message news:87pqkc6fwj.fsf@ludovic-brenta.org... > "Randy Brukardt" writes on comp.lang.ada: ... >> Ada 95 requires >> >> type My_Number is range 0 .. 2**32-1; >> >> to be rejected, as the upper bound exceeds Max_Int. (This is >> technically a "signed_integer_type_definition", which shows the cause >> of the problem.) > > But this simply stems from the requirement that Ada be efficiently > implementable on this target hardware, which has 32-bit integers. Huh? Unsigned 32-bit integers are directly supported by the machine hardware (on every real 32-bit processor I've ever looked at). The problem is that Ada requires all integers to be signed or wrap-around, which is silly. Randy.