all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* map-char-table, optimize-char-table and `equal' comparisons
@ 2008-05-10 20:21 Stefan Monnier
  2008-05-14  7:59 ` Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-05-10 20:21 UTC (permalink / raw)
  To: emacs-devel


Both map-char-table and optimize-char-table compare consecutive values
using `equal' to determine whether to merge them into ranges.

I can see that it may sometimes be useful, but it is dangerous since it
may lose object identity information (obviously) and more importantly
because `equal' can fail when comparing cyclic objects.

I happened to be manipulating char-tables that map chars to other
char-tables, sometimes in cyclic ways and that makes it impossible to
use map-char-table ;-(

Any objection to changing the internal comparison predicate to `eq'?


        Stefan




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

end of thread, other threads:[~2008-05-16  5:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-10 20:21 map-char-table, optimize-char-table and `equal' comparisons Stefan Monnier
2008-05-14  7:59 ` Kenichi Handa
2008-05-16  4:48   ` Stefan Monnier
2008-05-16  5:43     ` Kenichi Handa

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.