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: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public From: D'Arcy Smith Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/15 Message-ID: <37667A00.2086E4F8@itools.symantec.com>#1/1 X-Deja-AN: 489897821 Content-Transfer-Encoding: 7bit References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> To: mike@world.nospam.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@itools.symantec.com X-Trace: it.visualcafe.com 929462637 11475 155.64.77.42 (15 Jun 1999 16:03:58 GMT) Organization: Internet Tools Division, Symantec Corp. Mime-Version: 1.0 NNTP-Posting-Date: 15 Jun 1999 16:03:58 GMT Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-15T16:03:58+00:00 List-Id: mike@world.nospam.com wrote: > In article , Mark says... > >I think the point is that the result of an overflow isn't necessarily the > >wrong number. > I wonder if the above will be stand in court when a bank customer complains > to the judge that they deposited $5,000 into their saving account > in top of what allready they had in there, only to be told by the bank > that now they have a negative balance. > 'The result of an overflow isn't necessarily the wrong number' the bank > attorney replies. (flaged on the side by the bank top Java consultant ready > to supply more therotical evidence that supports such a statment). I think you missed the implied - "depending on what the number is being used for". Reading this thread... it would be nice to have a Java compiler that could generate checkes for overflows etc... perhaps a new keyword like they did with 'strictfp'. ..darcy -- D'Arcy Smith Sr. Software Engineer Symantec, Internet Tools Division If you simply reply to this email it will get forwarded to /dev/null My Email address is darcy at itools dot symantec dot com