all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what's "weakness" in elisp's hash table?
@ 2008-01-03 16:43 Xah Lee
  2008-01-03 21:15 ` Tassilo Horn
  2008-01-06  9:45 ` =?ISO-8859-1?Q?what's_"weakness"_in_elisp's_hash_table??= Tim X
  0 siblings, 2 replies; 3+ messages in thread
From: Xah Lee @ 2008-01-03 16:43 UTC (permalink / raw)
  To: help-gnu-emacs

in emacs lisp, when creating a hash table, there's the “:weakness”
thing.

See
http://xahlee.org/elisp/Creating-Hash.html

what does that mean? Suppose if i do

  (setq myhash (make-hash-table :test 'equal :weakness 'key))
  (puthash "mary" "19" myhash)
  ...

Then, the "mary" would disappear if i don't access it??

  Xah
  xah@xahlee.org
\xAD\xF4 http://xahlee.org/

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

end of thread, other threads:[~2008-01-06  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-03 16:43 what's "weakness" in elisp's hash table? Xah Lee
2008-01-03 21:15 ` Tassilo Horn
2008-01-06  9:45 ` =?ISO-8859-1?Q?what's_"weakness"_in_elisp's_hash_table??= Tim X

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.