Re: How to handle these warnings?

Sam Steingold <[email protected]> Wed, 19 Jul 2017 13:31:32 -0400
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
> * Bruno Haible <[email protected]> [2017-07-19 17:51:57 +0200]:
>
> This is the short-term fix. The long-term fix is that clisp should
> provide a means to declare that such a generic-function is meant to be
> modified at runtime. Questions:
>   1) What should the syntax for this declaration look like?
>      (Extension of DEFGENERIC? Separate declaration macro? ...)

(defgeneric gf (...)
  (declare (dynamically-modifiable))
  ...)

(declaim (dynamically-modifiable gf1 gf2 gf3))

>   2) Where should the information be stored?
>      (In the generic-function object? On the symbol's property list? ...)

generic-function object slot $dynamically-modifiable.

thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net
http://www.memritv.org https://ffii.org http://think-israel.org
Never trust a man who can count to 1024 on his fingers.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list