Stephen,
    Sorry I removed the question as you were answering, as we
determined our problem was exactly what you described, our own cause,
rather than anything to do with clojure.contrib. Still, thanks for the
prompt reply, much appreciated, as is your library, which is being put
to good use within my company.

Thanks again,
Brian

On Jun 5, 9:43 am, "Stephen C. Gilardi" <squee...@mac.com> wrote:
> On Jun 5, 2009, at 9:16 AM, BrianS wrote:
>
> > <CompilerException java.lang.IllegalArgumentException: No matching
> > method found: println for class java.io.OutputStreamWriter
> > (NO_SOURCE_FILE:0)>
>
> It sounds like you're running the code in an environment where *err*  
> is bound to an OutputStreamWriter. The default binding is to a  
> PrintWriter which does provide println.
>
> I see that the API page describes *err* as a Writer whose default  
> binding is a PrintWriter wrapping System/err.
>
>        http://clojure.org/API#toc15
>
> clojure.contrib.sql is written as if *err* being bound to a  
> PrintWriter were a requirement. I think that's reasonable and I would  
> like to see the API page change to require that.
>
> It's reasonable to bind *err* to anything you like for a short time  
> within code you control, but a long-running Clojure environment, one  
> that provides a REPL, should mirror of the default environment so  
> Clojure code doesn't need to worry about using (.println *err* ...)  
> without its own wrapper.
>
> --Steve
>
>  smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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