18.1. Modifying Hash Table Keys [sec_18-1-2]

If you visibly modify a key, consequences are unpredictable:

(LET ((hash-table (MAKE-HASH-TABLE :test 'EQUALP)))
  (SETF (GETHASH hash-table hash-table) T)
  (GETHASH hash-table hash-table))
⇒ NIL ;
⇒ NIL

because (SETF GETHASH) modifies hash-table, the very next GETHASH does not find it in itself.


These notes document CLISP version 2.49.93+Last modified: 2018-02-19