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,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Portability of Arithmetic (was: Java vs Ada 95) Date: 1996/10/17 Message-ID: #1/1 X-Deja-AN: 190141186 references: <325D7F9B.2A8B@gte.net> <1996Oct15.174526.1@eisner> <326628B8.7724@gsfc.nasa.gov> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-10-17T00:00:00+00:00 List-Id: In article <326628B8.7724@gsfc.nasa.gov>, Stephen Leake wrote: >What if I'm doing some computations in Java that have intermediate >values that need 33 bits? In Java, you can use 'long', which is guaranteed to support exactly the range -2**63..2**63-1, no more, no less. >... In Ada, the compiler tells me when it can't do >that. So you port some code, and find that the compiler can't handle it. So you have to rewrite a bunch of code. Yuck. - Bob