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!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!noris.net!news2.arglkargh.de!news.theremailer.net!frell.theremailer.net!anonymous-x2!anonymous From: Fritz Wuehler Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at . Identifying the real sender is technically impossible. Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: Why use C++? References: Message-ID: Precedence: anon Date: Fri, 12 Aug 2011 17:50:13 +0200 Mail-To-News-Contact: abuse@frell.theremailer.net Organization: Frell Anonymous Remailer Xref: g2news1.google.com comp.lang.c++:82868 comp.lang.ada:20574 Date: 2011-08-12T17:50:13+02:00 List-Id: "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. Unless there was a specific language feature designed to prevent this, that is how it will work on most platforms.