home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6606 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  665 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: I want NaN and Inf to crash program.  Is this possible?
  5. Date: 21 Nov 1992 21:42:55 GMT
  6. Organization: California Institute of Technology, Pasadena
  7. Lines: 4
  8. Message-ID: <1emagvINNclf@gap.caltech.edu>
  9. NNTP-Posting-Host: sandman.caltech.edu
  10.  
  11. I want my programs to crash if some operation results in NaN or Inf.
  12. Is it possible for me to do this or for me to set some sort of trap?
  13. I don't know why gcc is set up so that it continues execution when a
  14. NaN or Inf shows up -- this is a real pain in the ass.
  15.