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
|
- To: pari-users@list.cr.yp.to
- Subject: non-destructive interrupt of GP program
- From: "Max A." <maxale@gmail.com>
- Date: Wed, 8 Nov 2006 13:43:10 -0800
- Delivery-date: Wed, 08 Nov 2006 22:50:02 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QzUBuEGs7jbwNmUK5rJWP3vcEkMBEX5cygrlkSaKAQMdVFtHV8k/JVlUKCVEUd2IP531kblwmfOAtJyFJukft9IEupHQh9ZjVnIKbSZacPMgKF/eY2yeWUTbsrJJEoE6cX2xLL07qOhdSZMQQyb5d0JgKNy5tajL56/83lrIWVU=
- Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm
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