Karim BELABAS on Thu, 5 Dec 2002 00:11:06 +0100 (MET) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: trap() help |
On Fri, 22 Nov 2002, Igor Schein wrote: > \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ > ? ??trap > trap({e}, {rec}, {seq}): > > tries to execute seq, trapping error e, that is effectively preventing it > from aborting computations in the usual way; the recovery sequence rec is > executed if the error occurs and the evaluation of rec becomes the result of > the command. If e is omitted, all exceptions are trapped. Note in particular > that hitting ^C (Control-C) raises an exception. See Section (??) for an > introduction to error recovery under GP. > \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ > > questions: > > 1) Which section should I see (note ?? above) Cross-referencing is not available when parsing directly the manual (no .aux) so gphelp simply prints [??] for all cross references... > 2) I wanna trap all pari errors, but at the same time I don't wanna > trap ^C. Is it possible? No. Type ^C^D (= interrupt + EOF). Karim. -- Karim Belabas Tel: (+33) (0)1 69 15 57 48 Dép. de Mathématiques, Bât. 425 Fax: (+33) (0)1 69 15 60 19 Université Paris-Sud Email: Karim.Belabas@math.u-psud.fr F-91405 Orsay (France) http://www.math.u-psud.fr/~belabas/ -- PARI/GP Home Page: http://www.parigp-home.de/