emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 724af76 2/2: Fix sxhash-equal on bytecodes, markers, etc.


From: Stefan Monnier
Subject: Re: master 724af76 2/2: Fix sxhash-equal on bytecodes, markers, etc.
Date: Tue, 07 Jan 2020 15:06:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Again, I don't think there's any reason for using markers as keys in
> an equal-based hash table. But if you do, what you probably meant was
> to use an eq-based hash table, and that used to work; now it doesn't.
>
> (puthash marker value ht)
> <...move marker...>
> (gethash marker ht)

If it hurts don't do that: the same happens with

    (puthash conscell value ht)
    <...setcar conscell...>
    (gethash conscell ht)


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]