On Sat, Nov 12, 2011 at 18:37, Kevin Albrecht <onlya...@gmail.com> wrote:
> 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'll find it here:

https://github.com/clojure/clojure/blob/master/changes.md

under the heading "Earmuffed Vars Are No Longer Automatically
Considered Dynamic"

// ben

-- 
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

Reply via email to