Eval not working on unexpanded macro quote

2009-08-20 Thread gutzofter
In common lisp I can do this: src-> (defmacro macro-hello () `"hello") (eval '(macro-hello)) no problem. In clojure: (defmacro macro-hello [] `"hello") (eval '(macro-hello)) gives me an error. Have I done something wrong? After further investigation I found that a pre-defined macro/function

Re: Eval not working on unexpanded macro quote

2009-08-20 Thread gutzofter
thanks for the version number: Clojure 1.1.0-alpha-SNAPSHOT is this from the github? On Aug 20, 4:41 pm, Chouser wrote: > On Thu, Aug 20, 2009 at 6:58 PM, gutzofter wrote: > > > In common lisp I can do this: > > > src-> (defmacro macro-hello () `"hello") &g

Re: Eval not working on unexpanded macro quote

2009-08-20 Thread gutzofter
(eval `(macro-hello))) ;works (println (eval '(macro-hello))) ;does not work ) seems that backquote resolves namespace while quote doesn't. Can you point me in the right direction concerning backquote and quote? On Aug 20, 4:41 pm, Chouser wrote: > On Thu, Aug 20, 2009 at 6:58 PM,