[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loop macro
- To: email@example.com
- Subject: Re: loop macro
- From: Liz Allen <firstname.lastname@example.org>
- Date: Thu, 13 Feb 86 12:27:59 -0500
- Cc: common-lisp@su-ai.ARPA
- In-reply-to: Your message of Wed, 12 Feb 86 14:54:08 GMT. <Wed Feb 12 14:54:08 1986 @ aiva.edinburgh.ac.uk>
From: Jeff Dalton <email@example.com>
Re Maryland loop macro: one thing is still unclear to me:
are the iteration variables always stepped in parallel (a
la DO)? Is there any way to have it done sequentially
(DO*)? One reason for linking words in ZetaLoop is to
distinguish these cases.
Always via DO -- they are init'd in parallel; you can use LET to
bind other variables which may be ref'd. Of course, on the iteration
steps, the variables are updated in sequence. The Maryland macro
always expands to a DO with, possibly, one or more LET's around it.
I don't really remember needing to use a DO* type binding of
iteration variables. I guess I would use a LET to bind some common
value and use it in the init part of the iteration values.
- Re: loop macro
- From: Jeff Dalton <firstname.lastname@example.org>