Bill Allombert on Tue, 14 Dec 2004 18:13:08 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

trapping or not trapping siginter

Hello PARI-dev,

I found a (convoluted) way to not trap siginter:

Just use two imbricated traps:

when Control-C is pressed while GP is evaluating code, exit()
will be called, thus by-passing RECOVER.

This is useful if you use trap() inside a long running loop.

More importantly, this imply that the internal PARI exception can be
tweaked to not siginter a specific execption with moderate changes.