home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!brooke
- From: brooke@cco.caltech.edu (Brooke Paul Anderson)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: I want NaN and Inf to crash program. Is this possible?
- Date: 23 Nov 1992 09:56:39 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 6
- Message-ID: <1eq9snINN8bu@gap.caltech.edu>
- References: <1emagvINNclf@gap.caltech.edu> <1992Nov22.073943.2912@weyrich.UUCP>
- NNTP-Posting-Host: sandman.caltech.edu
-
- The problem is that, if your program has generated a NaN or an Inf,
- something is definitely wrong, and the calculation needs to be halted.
- To me, having to sprinkle tests all over to check for these conditions
- is just as inconvenient and annoying as trying to catch bad pointers
- in an OS that doesn't have protected memory (like in DOS, where pointers
- can stomp all over the OS until the whole machine locks up).
-