From: "A.Appleyard" To: djgpp AT delorie DOT com Date: Thu, 22 Feb 1996 09:12:21 GMT Subject: trapping overflow in Gnu C/C++ Message-ID: <3606F17645E@fs2.mt.umist.ac.uk> A.Appleyard wrote: > I am sick of program runs being hostage to one stray floating point overflow. > What I want is one or both of (1) Being able to tell the PC to carry on > regardless if overflow happens, (2) Being able to tell the PC to go to such > and such an address if overflow happens. pausch AT electra DOT saaf DOT se (Paul Schlyter) replied:- > And what do you intend to do in (2) if you get there (except to terminate > the program)? It could go to the next iteration, or the next set of data, or whatever, according to whatever the program is for. If the program interacts with a user, it could tell the user "Oi, that last lot of data made me overflow!" and return to its own prompt instead of to a DPS prompt.