> (deftest
>> (binding [q/height (fn [] 400)]
>> (is 400 (q/height
>>
>> i get an Exception that says:
>>
>> actual: java.lang.IllegalStateException: Can't dynamically bind
>> non-dynamic var: quil.core/height
>>
>> Any hints,
i do it like this:
>
> (ns myapp
> (:use clojure.test)
> (:require [quil.core :as q]))
>
> (deftest
> (binding [q/height (fn [] 400)]
> (is 400 (q/height
>
> i get an Exception that says:
>
> actual: java.lang.IllegalStateException: Can't dynamical
Exception that says:
actual: java.lang.IllegalStateException: Can't dynamically bind non-dynamic
var: quil.core/height
Any hints, how this an be solved or circumvented ?
thanks & have a successful day
--
You received this message because you are subscribed to the Google
Groups "Cloj
On Sat, Nov 12, 2011 at 18:37, Kevin Albrecht 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 dynami
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