I am unable to read-string record instances produced by pr-str.

user> (defrecord Z [x y])
user.Z
user> (read-string (pr-str (Z. 1 2)))
; Evaluation aborted.

The exception is:

java.lang.Exception: No dispatch macro for: :
  [Thrown class java.lang.RuntimeException]

However, struct instances are read correctly. Am I correct in assuming
that pr-str/read-str work for all clojure instances? (All of this with
the latest clojure 1.2.0-SNAPSHOT)

Thanks,

-- 
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

Reply via email to