Scratch my earlier response! You are right, and this is a known bug. It is 
fixed in 1.2.

Stu

> Macintosh:clojurefun wojtek$ ./runfile.sh
> Clojure 1.1.0
> user=> (use 'clojure.contrib.json.write)
> nil
> user=> (json-str (for [a [1 2 3]] (do (print "a") "b")))
> "[aaa\"b\",\"b\",\"b\"]"
> 
> 
> I think json-str shouldn't capture the printed a's, should it?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to