Modified the writer so that it checks for hash tables before

records.  Now hash tables print as #<hash-table> instead of 
#["hash-table" junk].
This commit is contained in:
Abdulaziz Ghuloum 2006-12-04 09:57:30 -05:00
parent ab6c87b71f
commit 7ecb397ec7
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -303,6 +303,9 @@
[(bwp-object? x)
(write-char* "#!bwp" p)
i]
[(hash-table? x)
(write-char* "#<hash-table>" p)
i]
[(record? x)
(let ([printer (record-printer x)])
(if (procedure? printer)
@ -310,9 +313,6 @@
(write-shareable x p m h i write-record)))]
[(code? x)
(write-char* "#<code>" p)]
[(hash-table? x)
(write-char* "#<hash-table>" p)
i]
[($unbound-object? x)
(write-char* "#<unbound-object>" p)
i]