Hi,

Am 31.12.2010 um 20:12 schrieb xlarsx:

> Good day
> Before anything I'd like to thank you for your time
> 
> I've the following problem:
> user=> (def x 1)
> #'user/x
> user=> (def y 1)
> #'user/y
> user=> (+ x y)
> 2
> user=> (binding [x 2 y 3] (+ x y))
> IllegalStateException Can't dynamically bind non-dynamic var: user/x
> clojure.lang.Var.pushThreadBindings (Var.java:339)
> 
> The origin of this code is: http://clojure.org/vars

This a change in the upcoming 1.3 release. Vars have to be declared explicitly 
dynamic to be able to rebind them via binding. But I don't know the exact 
syntax how to do this.

Sincerely
Meikel
 

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