Ho valutato il seguente codice elisp in IeLM:Emacs: gethash non vede chiave nella tabella hash
(setq foo-hash (make-hash-table))
(puthash "location" "house" foo-hash)
(defun foo-start()
(interactive)
(message (gethash "location" foo-hash)))
Tuttavia quando ho eseguito (foo-start)
o (gethash "location" foo-hash)
ottengo eco solo nil
. Inserendo solo foo-hash
in ielm echi: #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ("location" "house"))
È un errore o sto facendo qualcosa di sbagliato? Versione
Emacs: 24.0.95.1