In SVN 1075, binding doesn't seem to work for macros:

;defined as fn to avoid "can't take value of a macro" exception
(defn bind-test
  [& args] `(println "bind-test" [EMAIL PROTECTED]))

(binding [and bind-test]
(and 1))

I recall this used to work  (from some experiments I ran in May of
this year). Since the macro flag of the var 'and' is set, my bind-test
fn should be applied as a macro inside the binding.

I am working on a thread monitoring facility and would like to be able
to :

(binding [fn my-fn]
...define functions here using the usual defn and fn macros
)

where my-fn adds some instrumenting code to functions.
--~--~---------~--~----~------------~-------~--~----~
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