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: 103376,b92b95c9b5585075 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Why use C++? References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Followup-To: comp.lang.ada Date: Sat, 13 Aug 2011 04:06:31 -0400 Message-ID: <82ipq1zqew.fsf@stephe-leake.org> Cancel-Lock: sha1:m9iNd97yrcXhBnJkJirwiickHpM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 519e14e46307fe029e66101423 Xref: g2news1.google.com comp.lang.ada:20592 Date: 2011-08-13T04:06:31-04:00 List-Id: Fritz Wuehler writes: > "Jed" wrote: > >> >> "Randy Brukardt" wrote in message >> news:j22c61$5lo$1@munin.nbi.dk... >> >> > Modular types are something altogether different (and in all honesty, >> > rare enough that direct language support is of dubious value -- most of >> > us supported adding them to Ada 95 simply because it was the only way >> > to get any support for the largest unsigned integer type). >> > >> >> Isn't the wrapping behavior just a consequence of wanting to get a >> representation in which signed and unsigned integers can be easily >> converted to each other? I.e., "they" didn't sit down and say, "let's >> implement unsigned integers with wrapping behavior". > > More likely it's a consequence of doing nothing, because the natural > behavior of the hardware is that unsigned integers wrap. The natural behavior of the hardware is that signed integers wrap, as well. -- -- Stephe