Re: "Vars" problem

2010-12-31 Thread Sean Corfield
On Fri, Dec 31, 2010 at 11:12 AM, xlarsx wrote: > 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 The docs refer to Clojure 1.2 bu

Re: "Vars" problem

2010-12-31 Thread Meikel Brandmeyer
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 dynamica

"Vars" problem

2010-12-31 Thread 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