true
nil
> (= 'true (eval 'true))
true
Is it bug or feature? I'd expect that true is always symbol.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
> (setf)
ERR: missing argument in function setf
(setf original-eval eval)
(constant 'eval (lambda(x)(inc eval-counter)
(print eval-counter ": " x "=>")
(println (original-eval x))))
(eval '((lambda(x)(+ x 2)) 3)); works OK
; main program
(setf f (lambda(x)(+ x 2)))
(f 4) ; used original-eval, not eval
((eval 'setf) (eval 'f) (eval '(lambda(x)((eval '+) (eval 'x) (eval '2))))
((eval 'f) (eval '4)).