Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "MikeP" Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking Date: Sat, 16 Jul 2011 00:32:58 -0500 Organization: A noiseless patient Spider Lines: 35 Message-ID: References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> Injection-Date: Sat, 16 Jul 2011 05:32:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="JFpB2gvi06BqMH/s1e1Gsw"; logging-data="22255"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CgkjDgvse9ba1hEJYHN/n" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:JD8n6MfJiWpL4La5GKlmtUdlgHk= X-Priority: 3 X-MSMail-Priority: Normal Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6222 Patricia Shanahan wrote: > 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. Just like a dentist's drill and an oil well drill are tools?