Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom hash tables? #18

Open
Ambrevar opened this issue Jan 28, 2021 · 0 comments
Open

Support custom hash tables? #18

Ambrevar opened this issue Jan 28, 2021 · 0 comments

Comments

@Ambrevar
Copy link
Contributor

https://github.com/metawilm/cl-custom-hash-table provides us with a portable way to define custom hash tables.
These are still of the hash-table type and thus are serialized by prevalence like any other hash table, but with the test set to the custom test.
The new hash-function, however, is not serialized.

This causes problems on deserialization because the custom test alone is not enough to make the custom hash table: the hash function must be provided.
Otherwise, the following condition is raised:

Unknown :TEST for MAKE-HASH-TABLE: MY-TEST-FUNCTION

One way to work around this would be to serialize the hash-function name. Then, to deserialize it, the library would use cl-custom-hash-table.
The problem is that I can't find a way to access the hash-function used for a hash-table value. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant