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

Chaitanya Gupta via clisp-list <[email protected]> Tue, 28 Nov 2017 01:09:15 +0530
Newsgroups gmane.lisp.clisp.general
Message-ID <CANOhSrwR4GMQUHZkxqmBZ_KFFZp7nZyrYsd=1q28yiupHdEo_A@mail.gmail.com>
On 28 November 2017 at 00:41, Sam Steingold <[email protected]> wrote:
>> * 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.

Thanks, using LET works fine here.

Thanks,
Chaitanya

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