You should use 'do' for that kind of thing, not list.

Rich

On Oct 20, 2011, at 1:53 PM, Micah Martin wrote:

> I recently tried to get Speclj running on Clojure 1.3 and came across the 
> following problem:
> 
> (list
>  (declare ^:dynamic p)
>  (defn q [] @p))
> 
> (binding [p (atom 10)]
>  (q))
> 
>> java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to 
>> clojure.lang.IDeref
> 
> Thanks to @cemerick for helping me condense the snippet, and thanks to both 
> @cemerick and @chouser for the lively discussion on IRC.  Yet the discussion 
> was inconclusive.  Is the above expected behavior? 
> 
> Micah
> 
> -- 
> 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

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