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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public From: mike@world.nospam.com Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/15 Message-ID: <7k57vb$1ipf@drn.newsguy.com>#1/1 X-Deja-AN: 489802656 References: <7jt2c0$vrb@drn.newsguy.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-15T00:00:00+00:00 List-Id: 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). Mike.