#7: Progress! No longer breaking!
Bug is now probably in the implementation of CONC rather than in EVAL.
This commit is contained in:
parent
d2ce61e6a7
commit
d563f390c1
4 changed files with 111 additions and 30 deletions
13
resources/sexpr/select.lsp
Normal file
13
resources/sexpr/select.lsp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
;; Bottom of page 66
|
||||
|
||||
(PUT 'SELECT 'FEXPR
|
||||
'(LABEL FORM
|
||||
(PROG (Q BODY)
|
||||
(SETQ Q (EVAL (CAR FORM))) ;; not sure that Q should be evaled.
|
||||
(SETQ BODY (CDR FORM))
|
||||
LOOP
|
||||
(COND
|
||||
((EQ NIL (CDR BODY)) (RETURN (CAR BODY)))
|
||||
((EQ Q (EVAL (CAAR BODY))) (RETURN (CDAR BODY))))
|
||||
(SETQ BODY (CDR BODY))
|
||||
(GO LOOP))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue