With the below code I'm getting this output:
"m"
#S(HASH-TABLE :TEST FASTHASH-EQUAL)
"m"
#S(HASH-TABLE :TEST FASTHASH-EQUAL ("n" . "m"))I was really hoping to see the second line be the same as the fourth, as the "place" returned by gethash seems to act like a C pointer. Is there some way to activate such behavior, or am I completely off-base?(defun foo ()
(let ((bar (make-hash-table :test #'equal :size 4)))
(lambda (baz quux)
(let ((corge (gethash baz bar)))
(setf corge quux)
(print quux)
(print bar)
(setf (gethash baz bar) quux)
(print (gethash baz bar))
(print bar)))))
(funcall (foo) "n" "m")I'm off my grokker.
- Chris
- Chris