🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3077

I want NaN and Inf to crash program. Is this possible?

#3077
From: Brooke Paul Anderson
Date: Sat, 21 Nov 1992 21:42
4 lines
679 bytes
I want my programs to crash if some operation results in NaN or Inf.
Is it possible for me to do this or for me to set some sort of trap?
I don't know why gcc is set up so that it continues execution when a
NaN or Inf shows up -- this is a real pain in the ass.
Technical Details
Message-ID: <1emagvINNclf@gap.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!brooke

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: I want NaN and Inf to crash program.  Is this possible?
Date: 21 Nov 1992 21:42:55 GMT
Organization: California Institute of Technology, Pasadena
Lines: 4
Message-ID: <1emagvINNclf@gap.caltech.edu>
NNTP-Posting-Host: sandman.caltech.edu