help-gnu-emacs
[Top][All Lists]
Advanced

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

what's "weakness" in elisp's hash table?


From: Xah Lee
Subject: what's "weakness" in elisp's hash table?
Date: Thu, 3 Jan 2008 08:43:09 -0800 (PST)
User-agent: G2/1.0

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/



reply via email to

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