#276 [PATCH]: printing hashtables readably is broken

HEAD
closed
nobody
None
1
2014-09-23
2013-11-19
stassats
No
(write-to-string (make-hash-table) :readably t)
=>
"#.(EXT:HASH-TABLE-FILL (MAKE-HASH-TABLE :SIZE
                                        1024
                                        :REHASH-SIZE
                                        1.5d0
                                        :REHASH-THRESHOLD
                                        0.75
                                        :TEST
                                        EQL) 'NIL)"

EQL is not quoted, and that form cannot be evalauted.

Attached patch fixes that.

And if there's a test suite,

(read-from-string (write-to-string (make-hash-table) :readably t))

can be used as a test.

1 Attachments

Discussion


Anonymous


Cancel   Add attachments