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

David Creelman creelman.david at gmail.com
Mon May 26 08:16:15 UTC 2008


On Fri, May 23, 2008 at 02:35:51PM +0200, Juan Jose Garcia-Ripoll wrote:
> 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.

Thanks.
That works nicely now. Just one line of change.
Surprisingly there was just one instance of a while done that way.
I'll try and pass it on to the parenscript maintainers.
Cheers
DC
> 
> 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