GNU bug report logs - #322
off-by-one in doc/misc/cl.texi

Previous Next

Package: emacs;

Reported by: "Felix -" <felix.1 <at> canids.net>

Date: Tue, 27 May 2008 09:35:03 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Felix -" <felix.1 <at> canids.net>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#322: off-by-one in doc/misc/cl.texi
Date: Tue, 27 May 2008 02:28:51 -0700
node "Iteration Clauses" says

@example
(loop repeat n do ...)
(loop for temp to n do ...)
@end example
@noindent
are identical except that the second one forces you to choose
a name for a variable you aren't actually going to use.

except they aren't identical.
the repeat loop runs n times, the for loop runs n+1 times.





This bug report was last modified 16 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.