printing a ref with type metadata

2009-03-27 Thread srader
Hi, When I type the following in at the REPL: (def foo (ref {} :meta {:type :t})) and then try to print it, I get the following error: java.lang.ClassCastException: clojure.lang.Ref (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] Is this a bug? Thanks, Scott --~

Re: PATCH: printing a ref with type metadata

2009-03-27 Thread srader
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 wrote: > On Mar 27, 2009, at 12:55, Konrad Hinsen wrote: > > > I'd say yes. Here's what happens: Typing "foo" at the REPL cau