If I remember rightly I solved this by binding *ns* before the eval, e.g. (binding [*ns* some-namespace] (eval form))
On Saturday, March 24, 2012 5:12:29 PM UTC, Renat Yuldashev wrote: > > How to evaluate each form from the vector of forms inside of the different > namespace? > I want to have a seq of the evaluation results as a result. > Smth. like this: > > (eval-with-ns 'user ['(+ 1 2 3) '(- 5 4) '(defn f [] [])]) > => (6 3 #'user/f) > > I know about with-ns, but don't know how to use it to solve this problem. > -- 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