http://paste.lisp.org/display/71272

I try to get *ns* of where macro is expended

; It works with :

(defmacro m2 [p]
  `(f2 p ~'*ns*))

(defmacro m1 [p]
  `(f1 ~(m2 p)))

; But not with :

(defmacro m1 [p]
  `(f1 (f2 p ~'*ns*)))

I get ns user (REPL), from where I call a test function.

I think that m2 expansion is done before so it make the trick.
But I didn't really understand.

If someone have better insight ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to