我在Lisp(Common Lisp)中實現了一個我不熟悉的語言,我想出了一個錯誤,我不明白爲什麼它發生了。不識別基本的LISP函數
(defun tabuleiro-remove-linha! (tabuleiro linha)
(let ((coluna 0))
(if (equal linha 17)
((loop while (<= coluna 9) do(setf (aref tabuleiro linha coluna) nil)))
((loop while (<= coluna 9) do((setf (aref tabuleiro linha coluna) (aref tabuleiro (+ linha 1) coluna)))
(tabuleiro-remove-linha! tabuleiro (+ linha 1)))))))
它顯示:
TABULEIRO-REMOVE-LINHA! in lines 51..56 : Not the name of a function:
(LOOP WHILE (<= COLUNA 9) DO (SETF (AREF TABULEIRO LINHA COLUNA) NIL))
If you continue (by typing 'continue'): Ignore the error and proceed
任何線索?我已經搜索過,並且都在CLISP中存在。我的CLISP是2.49。提前致謝。
明白了!謝謝你的解釋 :) –