(defmacro foobar [] `'(+ a b)) (let [a 5 b 6] (eval (foobar)))
I know that the above is completely useless but I'm just trying to get an intuitive understanding of how macros work under Clojure. At the REPL when I try to evaluate the second form, I get an null pointer exception. Why can't the result of the foobar macro access the values of a and b? Many thanks, David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---