[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to quote a list of functions?
From: |
Marcin Borkowski |
Subject: |
Re: How to quote a list of functions? |
Date: |
Sun, 09 Aug 2015 12:47:16 +0200 |
On 2015-08-09, at 12:26, Pascal J. Bourguignon <pjb@informatimago.com> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> On 2015-08-09, at 02:33, Pascal J. Bourguignon <pjb@informatimago.com> wrote:
>>
>>> Marcin Borkowski <mbork@mbork.pl> writes:
>>>
>>>> OK, but this seems a bit awkward, especially for my second example,
>>>> which would then become
>>>>
>>>> (list (list #'function argument) ...)
>>>
>>> `((,(function f) ,(gen 42)))
>>
>> What do you mean by `gen'? My Emacs (25.0.50.1) doesn't have such
>> a function.
>
> Why do I mean by f?
OK, but (AFAIUC) in the above form `function' gets evaluated (so that
the symbol `f' -- the function name -- ends up in the list), and then
Emacs tries to /evaluate/ the form `(gen 42)'. This probably fooled me
(again). Do I get it right that you wanted to show how to generate the
argument dynamically and not put a constant in the whole expression?
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
Re: How to quote a list of functions?, Emanuel Berg, 2015/08/08
- Re: How to quote a list of functions?, Marcin Borkowski, 2015/08/09
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/09
- Message not available
- Re: How to quote a list of functions?, Barry Margolin, 2015/08/09
- Re: How to quote a list of functions?, Ian Zimmerman, 2015/08/09
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/10
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/10
- Message not available
- Re: How to quote a list of functions?, Barry Margolin, 2015/08/11
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/11