Hi,

I have quite a bit of Java code with I/O capabilities that generally 
support both PrintStream and PrintWriter. I was a bit perplexed when I 
tried to apply one of these methods to *out* and was rebuffed thusly:

java.lang.IllegalArgumentException:
  No matching method found: printMessage for class rrs.util.ErrorRecord

As Rich then pointed out to me on #clojure, the problem is that the 
concrete type of *out* is:

user=> (class *out*)
java.io.OutputStreamWriter


This leaves almost all of my system's I/O primitives high and dry.

What might be the issues or consequences of making the root binding of 
*out* a PrintWriter?


Randall Schulz

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