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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3f9104dada53163 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: An interesting quote on Java and C++ Date: 1997/09/22 Message-ID: #1/1 X-Deja-AN: 274605605 References: <5ujjvq$t4s@drn.zippo.com> <34218E68.63D5@gsg.eds.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-09-22T00:00:00+00:00 List-Id: In article , Robert Dewar wrote: >Note that in Ada, wrap around (modular) types *do* have completely portable >semantics, although in practice people will choose types that match thei >hardware, ... Not quite true. 3.5.4(27) allows special treatment of one's comp machines. (And there's an AI that worries about what the heck that paragraph means.) This is again the "efficiency over portability" way. Note that modular types are not just about modular arithmetic -- they also support bit-wise logical operations. On a one's complement machine, you still want to be able to have all-ones as a bit pattern, if you're using these things as bit patterns, even though it's arithmetically equal to zero. - Bob