dspec question
I thing I am missing something important with dspecs. I would like to record definitions of top-level forms I've defined but with no success. The following example from the documentation of dspec:location does not work for me: (defmacro define-wibble (x y) `(dspec:def (define-wibble ,x) (set-wibble-definition ',x ',y (dspec:location)))) (defun set-wibble-definition (x y loc) (when (record-definition `(define-wibble ,x) loc) ;; defining code here )) If I evaluate these two forms and then try for example (define-wibble a 10) I get "Illegal dspec (DEFINE-WIBBLE A)." error. Any suggestions? I'd appreciate any working example. Michal