MTS 8: LISP and SLIP in MTS
Page Revised January 1983 June 1976
The way to exit from a break loop is to evaluate NIL at the break
level (i.e., simply enter NIL). The value returned from BREAK is always
NIL.
Note: The file prefix characters for LISPIN and LISPOUT are * and ,
respectively. The file prefix characters for ERRIN and ERROUT are ?
and +, respectively. Thus, the user can easily tell whether or not he
is in a break loop.
A call to BREAK in batch mode causes execution to terminate.
(RES N) _________
RES is the LISP internal restart function, and may be called to
continue the current evaluation after an attention interrupt, a timer
interrupt, or a STEP error (see the description of the STEP function
later in this subsection). These interrupts are processed by LISP as
follows: a single attention interrupt will cause a flag to be set, and
when LISP reaches a state from which it can be restarted, the interrupt
will be processed, and the error form associated with a type 1 error
will be evaluated.
If a second attention interrupt is issued before the first one is
processed, it will be recognized immediately and the error form will be
EVALed. However, when this occurs, no restart is possible.
Assuming that only one interrupt has been issued, a call to RES with
no arguments will cause execution to be resumed at the point where it
was interrupted. If the argument N is given, it must be a positive
integer, and the Nth previous outstanding interrupt will be restarted.
Timer interrupts are always deferred until the system reaches a state
from which it can be restarted. However, upon receiving a timer
interrupt, the system immediately prints a comment on *MSINK* acknow-
ledging the timer interrupt. At that point, the user may interrupt if
he so desires. If an attention interrupt is issued while a timer
interrupt is still pending, it will be processed immediately (and no
restart will be possible).
(DUMP N SW) _______________
DUMP is the LISP system dumping and traceback program. DUMP can be
called in two modes. The first mode occurs when no second argument is
given. In this mode, the value of N indicates what error recovery
actions should be performed. The code values described below should be
added together to specify the actions desired. The numbers in parenthe-
ses after the action description specify the relative order of perfor-
mance of the various actions. The default value of N is 7.
58 LISP