[CM] CM's loop macro, issues/incompleteness of implementation?

Iain Duncan iainduncanlists at gmail.com
Sun Apr 19 07:58:25 PDT 2020


Thanks Rick. I'm a bit confused, because I see you quoting a message from
Orm, but for some reason I don't see that message anywhere, so i'm not able
to make sense of the thread properly. Are you saying that the loop macro is
a complete implementation of Common Lisp's loop macro then, but a CM
process is not?  I've gone through the loop chapter of Notes from the
Metalevel, but don't know the CL implementation well enough to know if
there is more that is missing.

thanks for getting back to me
iain


On Sun, Apr 19, 2020 at 5:54 AM Taube, Heinrich K <taube at illinois.edu>
wrote:

> On Apr 19, 2020, at 2:51 AM, Orm Finnendahl <
> orm.finnendahl at selma.hfmdk-frankfurt.de> wrote:
>
>
> There are more things loop provides which weren't considered essential
> or even useful in the context of a process. IIRC things like
> "collect", "append" or "into" aren't present. To assemble a complete
> list check the loop chapter in cltl2 here:
>
>
>
> the loop macro itself supports collect, append and into.
>
> (loop repeat 10 collect (random 123))
>
> (117 63 92 31 90 116 76 99 91 11)
>
> (loop repeat 10 append (list 1 2 3))
>
> (1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3)
>
> (loop repeat 10 collect 456 into foo
>       finally (return (append foo foo)))
>
> (456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456 456
> 456 456)
>
> a process is sort of a loop in the sense that it iterates over time and so
> uses some of the same keywords but its not a loop per se.
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200419/9ddeab58/attachment-0001.html>


More information about the Cmdist mailing list