On 21 March 2010 21:02, Mark Engelberg <mark.engelb...@gmail.com> wrote: > I'm kind of surprised that *print-dup* behavior isn't automatically enabled > for deftypes. Is there a standard way to add this in for a specific > deftype?
print-dup is just another multimethod, so an implementation of that can be defined. Obviously deserialisation with read will have no chance of working in the context of code which doesn't know the relevant deftype, but when the deftype is known, one could perhaps use #= for it: (read-string "#=(Piece 1 \A)") Sincerely, Michał -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.