json-str isn't capturing the printed 'a's. The 'a's just got printed
after the '[' got, and before the rest of the string got printed.

On Thu, Jul 8, 2010 at 5:35 PM, vibrant <paran...@gmail.com> wrote:
> 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 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



-- 
Moritz Ulrich
Programmer, Student, Almost normal Guy

http://www.google.com/profiles/ulrich.moritz

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