From: Erik Naggum

Subject: Re: loop variable of type real

Date: 1999-5-3 13:07

* Juanma Barranquero
| Does anyone know the rationale for the different treatment of the control
| variable of: ...  The "dotimes" one is declared as type INTEGER while the
| loop ones are REAL.

  (INTEGER 0 10) is actually a very specific subtype of FIXNUM.

| It is easy enough to do (loop for i of-type fixnum ...) or INTEGER or
| whatever, but there's no way (to my knowledge) of doing the same with the
| hidden "repeat" variable, and I hate being forced to declare a visible
| name for it when I'm not interested in the loop counter, just the number
| of iterations.

  try (setq excl::*loop-real-data-type* 'fixnum) and see if you win.

  if you have ACL 5.0, the sources for LOOP macro should be in
  #p"sys:src;loop.cl", or in #p"sys:src;cl;code;loop.cl" if you have
  signed the support agreement with limited source code.

#:Erik