Thanks for the explanation and the patch. But instead of patching print-method, maybe vary-meta should be patched to handle refs?
Scott On Mar 27, 7:07 am, Konrad Hinsen <konrad.hin...@laposte.net> wrote: > On Mar 27, 2009, at 12:55, Konrad Hinsen wrote: > > > I'd say yes. Here's what happens: Typing "foo" at the REPL causes a > > call to clojure.core/print-method. This is a multimethod that > > dispatches on the result of clojure.core/type, which is the value of > > the :type tag in the metadata if there is one. Since there is no > > implementation for type :t, the default implementation is called, > > which is: > > > (defmethod print-method :default [o, #^Writer w] > > (print-method (vary-meta o #(dissoc % :type)) w)) > > > It is the call to vary-meta that fails for a ref. > > The attached patch fixes the bug. > > Konrad. > > print-method.patch > < 1KViewDownload > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---