[plt-scheme] 'equal hashes don't survive serialization

From: George Herson (gherson at snet.net)
Date: Sun Feb 25 14:42:04 EST 2007

When I use the serialize.ss library to serialize my
hash tables that were created to use equal? to compare
keys, the hash tables deserialize with eq? as the
key-comparison mode.  How do I avoid this?  With eq?
as the key-comparison mode, a look up with a key as
simple as '(2) won't work, I found.  

I thought of using hash-table-copy as a (bad)
workaround but that doesn't allow changing the
key-comparison mode in the copy.

thank you,
George Herson


Posted on the users mailing list.