> I think you should look at the binding function - > http://clojuredocs.org/clojure_core/clojure.core/binding > > In my tests, I am using this to run the same tests using two different > functions, which are supposed to do the same thing (using two different > methods, internally). > > In your case though, you might need a way to figure out in which context is > it running (to be able to change the bindings).
`binding` won't work in 1.3 because function vars are not dynamic. `with-redefs` is the right way to do it now. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- 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