From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,c887bec98cd793ef X-Google-Attributes: gid10c696,public X-Google-Thread: 111c93,c887bec98cd793ef X-Google-Attributes: gid111c93,public From: "Anthony W. Youngman" Subject: Re: division by zero exceptions ? Date: 1998/10/31 Message-ID: #1/1 X-Deja-AN: 407203863 X-NNTP-Posting-Host: thewolery.demon.co.uk:158.152.222.21 References: <01be0482$6ebd1e60$45934b0c@default> <71f8bc$clh$3@newnews.nl.uu.net> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 909910536 nnrp-03:9564 NO-IDENT thewolery.demon.co.uk:158.152.222.21 Organization: vinny-puch MIME-Version: 1.0 Reply-To: "Anthony W. Youngman" Newsgroups: comp.os.linux.alpha,comp.os.linux.development.apps In article <71f8bc$clh$3@newnews.nl.uu.net>, Toon Moene writes >fea@fea.rrd.ornl.gov (James D. Freels) wrote: > >> So... Why don't some of you guys who know how to write compilers fix >> gcc/g77 for the Alpha so that we can really use Linux instead. I >> would love to now, but I can't. > >James, I'd love to help you, but I haven't got a Linux Alpha system yet. >Because I've access to one, I might be able to get some work done if you can >supply me with a (short) example code. > >However, I have to take exception to your "When you have a job to do, and it >requires running a code that is several hundred thousand lines of source, you >don't have time to fix the bad code". When code throws up a "division by >zero" exception, you just can't trust that code, even if it runs on systems >that happen to "just let it run". > See my other post - if I'm doing math, I WANT it to return the correct value, ie if I say "x = y / tan( pi / 2)" then I WANT x to be set to infinity. If I don't have to trap for divide by zero, then my thousand lines becomes five hundred, and it's a damn sight easier to debug. Look at it as a mathematician, not an engineer. x divided by 0 IS infinity, and I wish computers could cope with that fact, and not crash my program. -- Anthony W. Youngman - wol at thewolery dot demon dot co dot uk Trousers with a single hole in their waistband are topologically equivalent to a doughnut. These sugarcoated trousers have yet to catch on at fast-food outlets! (SuperStrings by F. David Peat) If replying by e-mail please mail wol. Anything else may get missed amongst the spam.