Re: Can't call a function named by a symbol created during macro expansion

Sam Steingold <[email protected]> Mon, 27 Nov 2017 14:11:32 -0500
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
> * Chaitanya Gupta via clisp-list <[email protected]> [2017-11-27 23:14:59 +0500]:
>
>     (defmacro generate (name)
>       (let ((inner (gensym "INNER-")))
>         `(progn
>            (defun ,inner ()
>              "INNER")
>            (defun ,name ()
>              (list (,inner))))))
>
>     (generate outer)

Alas, this is a long-standing bug#180
(https://sourceforge.net/p/clisp/bugs/180/).

http://www.cygwin.com/acronyms/#PTC

PS. Workaround: use LET instead of PROGN.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net http://memri.org
https://ffii.org http://www.dhimmitude.org http://islamexposedonline.com
Sniper's job is to reduce his target audience.

------------------------------------------------------------------------------
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