Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!216.196.98.146.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 16 Jul 2011 00:26:19 -0500 Date: Fri, 15 Jul 2011 22:26:15 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 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: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 30 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.204.13 X-Trace: sv3-ItTtpwO4t8EHJXIaEzzaEFNJ8FHpsr21vxoXkQz9jRJ0OPsaFJ/nS/nvPB6yqPaqItfOOQpNCcHY7D4!VXLV+PY/IyV3XJh3Y6KnXtUpjhQ/wiNJY6qO9hp0lMpoFY0Pdp94h20pMVGQBnTvxJSmigDi9wk4!RuuZ3+pInejWFBMTS4VHTZUJvbR1Ul72n/XJ8+ExTBP7Dg== 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: 2300 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6221 On 7/15/2011 9:29 PM, MikeP wrote: > Patricia Shanahan wrote: >> On 7/14/2011 10:14 PM, MikeP wrote: >>> 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. >>>> >>>> Patricia >>> >>> But C# is very Java-like and has "checked" and also the >>> compiler-level equivalent, so C# would be the better alternative. >>> (And yes, I do know you were just kidding about Ada). >>> >>> >> >> No, I was not really joking, though I did not attempt to find all the >> languages that would meet the stated requirement. > > Don't look now, but if you weren't joking, then you recommended Ada to a > Java programmer! Oh my. Huh? Java, like any healthy programming language, is a tool, not a religion. Patricia