home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6617 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  900 b 

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