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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/17 Message-ID: <1999Jun17.185309.1@eisner>#1/1 X-Deja-AN: 490962527 X-Nntp-Posting-Host: eisner.decus.org References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <3766650F.705125B7@pwfl.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> <3766D1CC.D712895E@itools.symantec.com> <3767CDFC.798BBB23@cajunbro.com> X-Trace: news.decus.org 929659992 23807 KILGALLEN [216.44.122.34] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-17T00:00:00+00:00 List-Id: In article <3767CDFC.798BBB23@cajunbro.com>, "George W. Bayles" writes: > D'Arcy Smith wrote: > [snip] >> Could the language be defined differently to point out overflow >> erorrs? Sure. >> > > Perhaps you assume that all processors can automatically detect > integer overflow in hardware? Any requirement wrt handling integer > overflow you make in the language would incur severe performance > penalties if the hardware doesn't support it. Java effectively presumes that all processors have hardware support for a particular scheme of floating point. DEC have received strong customer feedback to get Java on VAX/VMS, but have steadfastly declined because emulating IEEE floating point on non-IEEE floating point hardware gave horrible performance. Larry Kilgallen