Hello to all.
don't understand this behavior.
In CLISP 2.49.92 (2018-02-18)
> (defun game-read ()
(let ((cmd (read-from-string (concatenate 'string "(" (read-line) ")"))))
(flet ((quote-it (x)
(list 'quote x)))
(cons (car cmd) (mapcar #'quote-it (cdr cmd))))))]
> (game-read)walk east
*** - SYSTEM::READ-EVAL-PRINT: variable WALK has no value
The following restarts are available:
USE-VALUE :R1 Input a value to be used instead of EINS.
STORE-VALUE :R2 Input a new value for EINS.
ABORT :R3 Abort main loop
Break 1 >
I'm pretty shure there is sqmething easy to solve my problem, but can't figured it out by my self.