Thanks. Then I think I've caught some idea. When binding *err* with other writer (say a StringWriter s), anything that use the *err* writer will actually write to s. But the original stderr stream is not redirected. It is still preserved as System/err. Thus anything that does not use the *err* writer, but instead use the System/err stream will not get affected.
Hope this makes sense. 2013/3/5 Jim - FooBar(); <[email protected]> > On 05/03/13 14:50, bruce li wrote: > > What is the difference between *err* and System/err?! > > its the same but wrapped in a PrintWriter > > > http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/*err* > > Jim > > -- > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
