Re: (apply #'and '(t t nil)) not work
- From: Brian <quickbasicguru@xxxxxxxxx>
- Date: Mon, 31 Mar 2008 08:08:10 -0700 (PDT)
fishmacs wrote:
I wrote a macro(very silly):The variable lst in the macro is bound to (quote (1)), not (1), in
(defmacro andl (lst)
`(and ,@lst))
if type (andl '(1)) in the REPL, I get the error:
EVAL: variable QUOTE has no value
that example.
If you plan on applying something short circuiting to a list of
values, the evaluation has already been done (in the creation of the
list), so the short circuiting nature isn't going to buy you anything.
.
- Follow-Ups:
- Re: (apply #'and '(t t nil)) not work
- From: Brian
- Re: (apply #'and '(t t nil)) not work
- References:
- (apply #'and '(t t nil)) not work
- From: fishmacs
- Re: (apply #'and '(t t nil)) not work
- From: Alex Mizrahi
- Re: (apply #'and '(t t nil)) not work
- From: fishmacs
- (apply #'and '(t t nil)) not work
- Prev by Date: Re: (apply #'and '(t t nil)) not work
- Next by Date: Re: (apply #'and '(t t nil)) not work
- Previous by thread: Re: (apply #'and '(t t nil)) not work
- Next by thread: Re: (apply #'and '(t t nil)) not work
- Index(es):