Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail NNTP-Posting-Date: Thu, 07 Jul 2011 09:11:27 -0500 Date: Thu, 07 Jul 2011 07:11:26 -0700 From: Peter Duniho User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> In-Reply-To: <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 17 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 50.46.118.188 X-Trace: sv3-s5osnA7789mWpOoOXYqWB+IeVreLEiMRqHAL4u2aukxFX5uApkhTJcyDslss6k+Vo0pvx0hfrAv5GM7!nU0xf9fXGU8FQ5oz0yciMtmRWwZA7dlNc1TxZcr16OoRovZ2XT21GC4x/5N1VSMno1qZ4PyxD+oh!PT1RWqxuMX55Vzj2uewV6+mq3CjhbYM6lPmNx1/jhsE= X-Complaints-To: abuse@iinet.com X-DMCA-Complaints-To: abuse@iinet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1904 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5965 On 7/6/11 10:16 AM, Patricia Shanahan wrote: > On 7/6/2011 8:35 AM, rop rop wrote: >> Hi, >> >> If I want to have arithmetic-overflow checking in all parts of an >> application, >> what is the most practical, simple, efficient way to achieve this? > > Write the application in Ada. Or use C#, which has the same feature, but is a lot more like Java otherwise. That said, I suspect Tom's guess is correct and a language-change just to achieve this goal isn't going to be the practical choice. Pete