Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "MikeP" Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking Date: Fri, 15 Jul 2011 00:14:04 -0500 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> Injection-Date: Fri, 15 Jul 2011 05:14:01 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="JFpB2gvi06BqMH/s1e1Gsw"; logging-data="17278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VjXGGAabtY7OlpyRihwze" 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:JJfwyNBYulfkuy0CBcsRWyacJDY= X-Priority: 3 X-MSMail-Priority: Normal Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6201 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).