Max A. on Wed, 08 Nov 2006 22:50:02 +0100


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

non-destructive interrupt of GP program


For simplicity assume that I run in GP the following program

for(i=1,10^20,n=i)

and want to interrupt it at some point and learn the value of n.
If I just press ^C, the value n will be lost:

? for(i=1,10^20,n=i)
 *** for: user interrupt after 1,888 ms.
? print(n)
n

Is there a way to interrupt computations such that the value of
valuables is preserved?

Thanks,
Max