Search found 2 matches

by hiraditya
Sat Sep 18, 2010 12:32 pm
Forum: Common Lisp
Topic: scope problem
Replies: 2
Views: 2885

Re: scope problem

yep...
i got the result

i defined the variables on the top
by using defparameter
(defparameter x 1)
etc...

then i got the result.

btw thanks for the book.
by hiraditya
Sat Sep 18, 2010 10:35 am
Forum: Common Lisp
Topic: scope problem
Replies: 2
Views: 2885

scope problem

Hello. I'm facing a strange scope problem: simply put... (defun bar(expr x v) (setf result expr) (setf x v) (eval result) ) > (bar '(* x 2) 'x 10) Error in KERNEL::UNBOUND-SYMBOL-ERROR-HANDLER: the variable X is unbound. [Condition of type UNBOUND-VARIABLE] ------------------------------------------...