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,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIFBlcnNzb24=?= User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada exception block does NOT work? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Thu, 18 Aug 2005 19:36:58 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1124393818 217.209.116.179 (Thu, 18 Aug 2005 21:36:58 CEST) NNTP-Posting-Date: Thu, 18 Aug 2005 21:36:58 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:4170 Date: 2005-08-18T19:36:58+00:00 List-Id: Simon Wright wrote: > With GCC 4.0.0 on powerpc-apple-darwin7.9.0, this outputs > > .... > average: 10.00 > average: 10.00 > average: 10.00 > average: 0.00 > average: 0.00 > average: 0.00 > $ > > which is of course a different bug! Thou shalt not divide by zero – unless thou hast a Macintosh. ;-) Out of curiosity: What happens if you initialize Sum with some other number? Can you divide any number by zero without getting an exception, or is it just 0/x=0 taking precedence over x/0=∞? -- Björn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu