evaluating binded symbols

From: Eli Bendersky (eliben_at_gmail.com)
Date: 03/27/05


Date: 27 Mar 2005 13:14:26 -0800

Hi all,

I'm now going through PAIP (chapter 6, match-if function) and there is
something the author uses but my CLISP v2.28 just doesn't grok. Simply
put, it boils down to:

[132]> (setq op '+ x 7 y 25)
25
[133]> (eval '(op x y))

*** - EVAL: the function OP is undefined

Why does EVAL evaluate x and y but doesn't evaluate op ?
Is this a problem with clisp or with the code from PAIP ?

Thanks in advance
Eli



Relevant Pages

  • Re: evaluating binded symbols
    ... | something the author uses but my CLISP v2.28 just doesn't grok. ... | Is this a problem with clisp or with the code from PAIP? ... call that function with funcall, ... which implicitly declare the variable special. ...
    (comp.lang.lisp)
  • Re: evaluating binded symbols
    ... > something the author uses but my CLISP v2.28 just doesn't grok. ... Others have addressed the issue of PAIP. ... The evaluation rules for the function position and the argument position ...
    (comp.lang.lisp)