Re: *print-dup* and subvec

2011-03-19 Thread Stuart Sierra
It's a bug: I just created CLJ-761http://dev.clojure.org/jira/browse/CLJ-761 . In general, print-dup should work for serialization, but there are cases where it doesn't work: defrecords, for example, though that may be fixed in the next release. -Stuart Sierra clojure.com -- You received

Re: *print-dup* and subvec

2011-03-18 Thread Carson
Thanks Stuart. Is that a bug that will be fixed in 1.3? I was under the impression that we can rely on print-dup for serialization. Am I wrong about that? Carson -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

*print-dup* and subvec

2011-03-17 Thread Carson
In Clojure 1.2, I tried this: (read-string (binding [*print-dup* true] (print-str (subvec [1 2 3] 1 But I get a java.lang.IllegalArgumentException: No matching method found: create I had something else print-dup'ed out onto disk and when I read it back in it gave me that error

Re: *print-dup* and subvec

2011-03-17 Thread Stuart Sierra
`print-dup` on any collection type generates code to call the `create` method of the collection's class. `APersistentVector$SubVector` is missing a `create` method. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post