On Sat, Jan 12, 2008 at 01:07:23PM -0800, SJS wrote:

The loop with two fors is kind of odd; I think I see what it's doing.

I just discovered the Common Lisp "iterate" package
<http://common-lisp.net/project/iterate/>.  It's basically an attempt to
get the usefulness of loop, but done in a more lisp-friendly syntax.  Each
term is group as a separate list (with parens), and consists of a keyword
at the start followed by keyword value pairs.  It also fixes the
ambiguities of 'loop' and defines a way to extend the syntax when needed.

As far as the multiple "for" keywords in a list moving parallel variables.
This can be done with C loops as well.

  for (x = 0, y = 0;
       x < 7;
       x++, y += 7)
    ...

David

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to