I'm trying to do this:
(defmacro my-defn [name & body] `(defn- #^{ :foo-tag "blah" } ~name [] ~...@body)) The idea is that foo will be defined and that {:foo-tag "blah"} is added to its meta-data. But that does not seem to work: user> (my-defn foo (println "Hello")) #'user/foo user> (foo) Hello nil user> (meta #'foo) {:ns #<Namespace user>, :name foo, :file "NO_SOURCE_FILE", :line 1, :arglists ([]), :private true} What is the proper way to do this? S. --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---