[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: Passing result of macroexpand-all as argument to a
From: |
Drew Adams |
Subject: |
RE: [External] : Re: Passing result of macroexpand-all as argument to a function |
Date: |
Wed, 9 Aug 2023 15:21:04 +0000 |
> > > So in practice, is it needed to quote or not the result of
> > > (macroexpand-all something arg) ?
> >
> > The result of the `macroexpand-all' call is an expression (i.e. a list
> > most the time). Just a normal list that happens to look like and being
> > usable as code.
>
> Not according to Drew, who says I got to quote.
I misspoke (wrote). You don't need to quote
in the example you presented - my bad.
I mistakenly thought you were needing to eval
something and quote the result for further
processing. That's what the link I posted is
about: how to do that.
Sorry for adding to the confusion.
> In other words, you are saying that macroexpand-all gives me just a normal
> list
> which is not evaluated before being passed to the function. Correct ?
>
> And then having a function defined as so
>
> (defun myfunc (expr bfname)
>
> and calling
>
> (myfunc (macroexpand-all something arg) bfname)
>
> will handle bfname properly. It will not pick up anything from
> the macroexpand-all data. Am I right ?
Yes.
- Re: Passing result of macroexpand-all as argument to a function, (continued)
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Drew Adams, 2023/08/08
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/08
- Re: [External] : Re: Passing result of macroexpand-all as argument to a function, Pierre Rouleau, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Drew Adams, 2023/08/09
- Re: [External] : Re: Passing result of macroexpand-all as argument to a function, Michael Heerdegen, 2023/08/08
- Re: [External] : Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/09
- Re: [External] : Re: Passing result of macroexpand-all as argument to a function, Michael Heerdegen, 2023/08/09
- Re: [External] : Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function,
Drew Adams <=
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Drew Adams, 2023/08/09
- Re: Passing result of macroexpand-all as argument to a function, Michael Heerdegen, 2023/08/08
- Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Drew Adams, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Drew Adams, 2023/08/09
- RE: [External] : Re: Passing result of macroexpand-all as argument to a function, Heime, 2023/08/09