<< Back to previous view

[CLJ-176] structs printed with *print-dup* true cannot be read Created: 18/Aug/09  Updated: 24/Aug/10  Resolved: 24/Aug/10

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: Backlog

Type: Defect
Reporter: Anonymous Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None


 Description   
(defstruct thing :a :b)
(def my-thing (struct thing 1 2))
(def s (binding [*print-dup* true] (pr-str my-thing)))
s 
;;=> "#=(clojure.lang.PersistentStructMap/create {:a 1, :b 2})"
(read-string s)
;;=> java.lang.IllegalArgumentException:
;;   No matching method found: create


 Comments   
Comment by Assembla Importer [ 24/Aug/10 6:14 AM ]

Converted from http://www.assembla.com/spaces/clojure/tickets/176

Comment by Assembla Importer [ 24/Aug/10 6:14 AM ]

stu said: This is not going to be fixed in the short or medium term. Please ping me if you have a compelling use case though.

Generated at Sun May 19 03:36:18 CDT 2019 using JIRA 4.4#649-r158309.