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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e01fe1b326df26d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!53ab2750!not-for-mail From: "Lurker" Newsgroups: comp.lang.ada References: <79ahr0jozmqb$.10jzllrcjpmsv.dlg@40tude.net> <_pwre.7121$U4.1023104@news.xtra.co.nz> Subject: Re: Division by zero X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: Date: Wed, 29 Jun 2005 21:20:24 +1200 NNTP-Posting-Host: 219.88.80.248 X-Complaints-To: abuse@xtra.co.nz X-Trace: news.xtra.co.nz 1120036617 219.88.80.248 (Wed, 29 Jun 2005 21:16:57 NZST) NNTP-Posting-Date: Wed, 29 Jun 2005 21:16:57 NZST Organization: Xtra Xref: g2news1.google.com comp.lang.ada:11721 Date: 2005-06-29T21:20:24+12:00 List-Id: "Robert A Duff" wrote in message news:wccy88ugorw.fsf@shell01.TheWorld.com... > 11.6(5) is all about run time effects. If divide by zero were illegal > (which means at compile time), then 11.6 would not apply. 11.6 is also > (as you said) all about implementation permissions -- i.e. not > portable. I would hope a legality rule in this area would be portable. OK, I don't want to get *too* deep into the language wars sort of thing. My surprise was quite pragmatic - I was called in (as a consultant) to investigate and fix a problem that led to actual program crash in production. The reason for that crash, as it happened, was division by zero in some obscure and rarely used part of the code. Now, I would understand it if it was a variable which is generally unsolvable. But a constant? At first I thought it must be a bug in this particular compiler version. But since then I've had quite a few replies stating that's how it should be. So I don't know anymore...