strange behaviour in loop

Frederic Udina <[email protected]> Wed, 24 Apr 2002 15:58:38 +0200 (MET DST)
Newsgroups gmane.lisp.statistics
Message-ID <[email protected]>
Hi,

I observed that loop has a strange behaviour:

> (setq ii 0)
0
> (loop foo foo  (incf ii) foo (when (> ii 10000) (return)))
NIL

doesnt give any error despite foo isn't bound to anything

> foo
Error: The variable FOO is unbound.

Why is that? Is it a bug or is something I do not know about loop?



 Frederic Udina
  ____________________________________________________________________
  <[email protected]> Dept. D'Economia i Empresa   Universitat Pompeu Fabra
                  Ramon Trias Fargas, 25-27      08005 Barcelona SPAIN
  tel. 34- 935421756/1763 fax: 34- 935421746     http://libiya.upf.es/
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  There are many here among us who feel that life is but a joke  B.Dy.