On Wed, Dec 16, 2015 at 09:47:31PM +0100, Jörg F. Wittenberger wrote:
> Hi,
>
> I always assumed that (make-hash-table eq?) would create a hash table
> usable with arbitrary chicken objects as keys.
>
> That is especially structures like objects created via define-record
> should be valid as
Hi,
I always assumed that (make-hash-table eq?) would create a hash table
usable with arbitrary chicken objects as keys.
That is especially structures like objects created via define-record
should be valid as keys. That is: referencing the table using the very
same object (comparing eq? to the
Ah, great to learn.
a) You are right: Per SRFI-69 it is actually undefined. Per chicken
manual it returns the new value associated with key.
As I've seen the latter (e.g. in the iup egg) actually being used, we
might at least want to keep the behavior in chicken.
b) But does not matter much.