Indeed, (print-dup (new StringBuffer) (new java.io.StringWriter)) throws the same exception. But (new StringBuffer) in the REPL prints the stringbuffer just fine.
Why does the exception only get triggered in macros? And doesn't print-dup need a default for unknown classes? On Dec 3, 12:23 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > On 3 Dez., 12:04, Michiel de Mare <[EMAIL PROTECTED]> wrote: > > > This has nothing to do with eval. The following fails too: > > > (defmacro foo [] (new StringBuffer)) > > (foo) > > The results at the Repl are printed via pr-on and > obviously print-dup doesn't know how to print a > StringBuffer. > > Sincerely > Meikel --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---