[CM] Bug in (apply set! ..)

Christos Vagias chris.actondev at gmail.com
Mon Feb 21 15:29:30 PST 2022

Oh, I have been missing something:
"[..] and set! evaluates its second argument, so [..]"

I now realize that to see get the behavior I was going after I needed to

(apply set! 'x (quote 'bar) ())

I guess it's not inconsistent at all, I just completely missed the double
evaluation going on with  the 2nd argument.

Thanks for the thorough explanation & sorry for the wrong alarm!

On Tue, 22 Feb 2022 at 00:12, <bil at ccrma.stanford.edu> wrote:

> Maybe it's inconsistent with (apply + a b) where
> there's only one evaluation of a and b?  Hmmm.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20220222/afaa19b2/attachment.html>

More information about the Cmdist mailing list