[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ambuguity

I think this is working correctly.  For exmaple, you would like
(let ((x 1))
  (let ((f #'(lambda () x)))
    (setq x 2)
    (funcall f)))

to return 2 and not 1.  The inside function should have access to
the same slot as the outside one.  If you want a different value to be
closed over each time then say

(dolist (x '(1 2))
  (push (let ((y x)) #'(lambda () y)) acc))