[pro] [Q] introspecting setf expanders
pc at p-cos.net
Mon Oct 8 15:20:04 UTC 2012
Just guessing: If you see that the writer form is a funcall to a setf function, you can then check with fboundp if such a function actually exists. This is probably a bit shaky, but maybe good enough for practical purposes?
On 8 Oct 2012, at 16:56, Didier Verna <didier at lrde.epita.fr> wrote:
> Raymond Wiker <rwiker at gmail.com> wrote:
>> #'get-setf-expansion, perhaps?
> Nope, because it gives you something by default.
> CL-USER> (get-setf-expansion '(not-previously-defined))
> (FUNCALL #'(SETF NOT-PREVIOUSLY-DEFINED) #:NEW886)
> Resistance is futile. You will be jazzimilated.
> Scientific site: http://www.lrde.epita.fr/~didier
> Music (Jazz) site: http://www.didierverna.com
> pro mailing list
> pro at common-lisp.net
More information about the pro