unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Strings properties and hash tables
@ 2021-04-21  9:18 Andrea Corallo via Emacs development discussions.
  2021-04-21 15:46 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2021-04-21  9:18 UTC (permalink / raw)
  To: emacs-devel

Hi all,

before I try reinventing the wheel, is there a suggested and or
precooked way we already have for having in hash tables string
properties considered when the string is used as key?

Ideally I'd just want to use `equal-including-properties' as test, but
this is not one of the three stardard accepted tests of
`make-hash-table', OTOH I can't trivially define a new hash table test
because we have no `sxhash-equal-including-properties'.

TIA

  Andrea



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strings properties and hash tables
  2021-04-21  9:18 Strings properties and hash tables Andrea Corallo via Emacs development discussions.
@ 2021-04-21 15:46 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2021-04-21 15:46 UTC (permalink / raw)
  To: Andrea Corallo via Emacs development discussions.

Andrea Corallo via "Emacs development discussions."
<emacs-devel@gnu.org> writes:

> Hi all,
>
> before I try reinventing the wheel, is there a suggested and or
> precooked way we already have for having in hash tables string
> properties considered when the string is used as key?
>
> Ideally I'd just want to use `equal-including-properties' as test, but
> this is not one of the three stardard accepted tests of
> `make-hash-table', OTOH I can't trivially define a new hash table test
> because we have no `sxhash-equal-including-properties'.
>
> TIA
>
>   Andrea

Okay, so far to solve my problem (bug#47868, bug#47922) I've introduced
(in feature/native-comp) `sxhash-equal-including-properties' so I could
define my own hash table test.  If this is not the best solution I'll be
happy to go for the better one.

Thanks

  Andrea



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-21 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  9:18 Strings properties and hash tables Andrea Corallo via Emacs development discussions.
2021-04-21 15:46 ` Andrea Corallo via Emacs development discussions.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).