I was experimenting with dynamic binding of vars with Clojure 1.3, as described on http://clojure.org/vars and got this error:
user=> (def x 1) user=> (binding [x 2] x) IllegalStateException Can't dynamically bind non-dynamic var: clojure.core/x clojure.lang.Var.pushThreadBindings I figured out the solution to this on a blog entry: http://blog.japila.pl/2011/03/cant-dynamically-bind-non-dynamic-var-in-clojure-1-3/ (use ^:dynamic when defining x) Is this new feature documented anywhere in the official documentation? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
