[Ecls-list] Parenscript compile error (suspect loop problem)

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Fri May 23 12:35:51 UTC 2008


On Fri, May 23, 2008 at 10:42 AM, David Creelman
<creelman.david at gmail.com> wrote:
> Hi,
> I just tried getting parenscript loaded via ECL, but ran into a problem in
> js-html.lisp.
> There is an error in process-html-forms something to do with a problem
> with using the loop macro.
>
> ;;; Compiling (DEFUN OPTIMIZE-STRING-LIST ...).
> ;;; Compiling (DEFUN PROCESS-HTML-FORMS ...).
> ;;; Compiling (SI:FSET 'PROCESS-HTML-FORMS ...).
> ;;; Error:
> ;;; The macro form (LOOP WITH ... WHILE ...  FOR ...) w
> as not expanded successfully.
> ;;; You are recommended to compile again.
>
> Is there something in there that SBCL loop lets through that ECL loop
> doesn't (assuming that it works in SBCL (I'll give it a go, don't know
> at time of writing))?

The order of the statements is wrong. FOR and WITH come first, then
WHILE and any execution statements

> (loop with a=2 while a for i in '(1 2 3) do (print i))
Iteration in LOOP follows body code.
Current LOOP context: FOR I IN '(1 2 3) DO.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list