- Faré snuerr@tznvy.pbz [2017-08-01 10:07:33 -0400]:
To mark a generic function as user-extendable, one can now use a declaration:
--8<---------------cut here---------------start------------->8--- (defgeneric perform (...) (declare #+clisp (dynamically-modifiable)) ...) (defgeneric operation-done-p (...) (declare #+clisp (dynamically-modifiable)) ...) --8<---------------cut here---------------end--------------->8---
The declaration is now in `hg tip` (but has not been released yet).
Will that declaration cause a warning or error on older versions of clisp? If yes, what read-time conditional more precise than #+clisp can I use to only enable on recent enough versions of clisp?
My first reaction was
--8<---------------cut here---------------start------------->8--- (declaim (declaration dynamically-modifiable)) --8<---------------cut here---------------end--------------->8---
but for some reason it does not work with defgeneric. Sorry.