I\'d like to use Common Lisp CLOS objects as keys in a hashtable. I thought it would be as simple as this:
(defclass my-class () ((a :accessor a :initarg a)))
Common Lisp standard does not provide any mechanism to provide additional test functions (beyound standard ones). You have 2 options:
sb-ext:define-hash-table-test
function (documentation)ext:define-hash-table-test
(documentation):test
argument and has :hash-function
argument (Allegro, Lispworks).