From: Hoehle, Joerg-C. <Joe...@t-...> - 2005-01-07 12:55:19
|
Hi, E. Cerme=C3=B1o writes: >I paste a small example, I forgot the argument in print, I want to >know that but not some past " continuable errors", look : >STORE-VALUE :R1 You may input a new value for K. >USE-VALUE :R2 You may input a value to be used instead of K. >STORE-VALUE :R3 You may input a new value for ... >USE-VALUE :R4 You may input a value to be used=20 You need to realize that most (all?) Lisp read-eval-print loops are = entered recursively unless you explicitly abort to an outer or top = level. This is different from e.g. the Python prompt. In other words, the Lisps have piled up for you all your past errors, = and you could proceed from any of these. But you don't seem to want these and instead would accomodate with a = "return to top-level" command that you'd use upon encountering an = error. Such a command in CLISP is either :a or :q, abort or quit. Try it and you'll get at most one STORE/USE-VALUE in typical cases. A session will look as follows: > [cause some error here] The following restarts are available: ABORT :R1 ABORT [possible other restarts] Break 1 [23]> quit ; or :q [24]> c *** - EVAL: variable C has no value The following restarts are available: USE-VALUE :R1 You may input a value to be used instead of C. STORE-VALUE :R2 You may input a new value for C. ABORT :R3 ABORT Break 1 [25]> abort ; or :a [26]> See how the prompt changes and shows that you exited the debugger loop. Furthermore, if you use SLIME within Emacs, all you need is hit a = single key to exit the debugger loop. You may consider installing/using = SLIME. >Si contin=C3=BAa (tecleando `continue'): Reintentar >The following restarts are also available: BTW, this mixture of languages looks like incomplete (bogus?) = internationalization in CLISP. Regards, J=C3=B6rg H=C3=B6hle. |