On 18 May 2010 08:33, alux <alu...@googlemail.com> wrote:
> I should add, that a new thread runs in the default environment again.
>
> You may set the *out* variable in your thread with "binding":
>
> (let [dummy *out*] ; to have a name for the current *out*
>    (.start (Thread. (fn [] (binding [*out* dummy] (prn x))))))
>

Sadly though this doesn't work with Java libs, using System.out, does
anyone know of a trick to redirect their output to the slime REPL too?

R.

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