I'm running into the following problem in Common Lisp (using CLISP)... The following code runs just fine and as expected ('->' designates what the function call returns):
(list (quote x)) -> (X)
However, when I try to move this behavior into a function,
(defun quote-it (x)
(list (quote x)))
And I call the function, I get an unexpected error.
(quote-it x) -> SYSTEM::READ-EVAL-PRINT: variable X has no value
Can anyone explain what's going on here?
Thanks.