MTS 8: LISP and SLIP in MTS
Page Revised February 1979 June 1976
S is the value to be returned from LTR.
SW is a switch which determines what will happen to the rest of the
forms in the list, which would be iteratively evaluated if the LTR were
not present.
Value Meaning _____ _______
SW = NIL Do not evaluate any more forms. S is then
effectively the last value in the list.
SW = T Continue normally through the list.
SW = anything else In this case, SW must be a new list of forms,
which will be substituted for the rest of the
original list, and evaluation will continue.
Example:
(REM (READ) (LTR (READ) X) (READ))
If X is NIL, then the effect of this function is (REM (READ) (READ)).
If X is T, then the effect of this function is (REM (READ) (READ)
(READ)). If X is (S), then the effect of this function is (REM (READ)
(READ) S).
LTR stands for "list terminate or redirect."
(MTS A) _________
The MTS function, besides allowing the user to return to MTS with the
option to restart by calling (MTS), also allows execution of a single
MTS command, with an automatic restart. This allows the LISP programmer
(as distinct from the user of the program) to execute MTS commands
without the user’s knowledge.
A must be a literal atom or IOARG. The PNAME of the atom, or the
contents of the buffer associated with the IOARG, is executed as an MTS
command, and an automatic restart is performed.
MTS always returns NIL.
The Transport System ____________________
LISP incorporates a simple mechanism for creating and altering data
structures "hypothetically," for backing up to a previous state of the
data structures, and for maintaining several alternative structures at
once and switching back and forth among them.
80 LISP