Another one related to my previous question about meta-data. user> (defn #^{ :xxx 1} foo [] "foo") #'user/foo user> (defn #^{ :xxx 2} bar [] "bar") #'user/bar
I need to do something similar to this: user> (map #(:xxx (meta %)) [foo bar]) (nil nil) Basically accessing the meta data of a function of which I only know the 'name'. (Because that is what my macro takes as one of its parameters) I know it works when I use the #' reader macro. user> (map #(:xxx (meta %)) [#'foo #'bar]) (1 2) But I'm using this in a bigger macro that takes a bunch of functions as a parameter. Is there a way to make this work or should I 'translate' the functions that I take by name with (var foo)? I must admin that I don't fully understand the difference between foo and #'foo. That is probably why I'm making this beginner mistake :-) 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 -~----------~----~----~----~------~----~------~--~---