[Ecls-list] Executing lisp in custom C REPL, require stops eval

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Wed Jul 28 10:56:50 UTC 2010


Add a FORCE-OUTPUT at the end of your code. Since you do not have a REPL
nothing is flushing the I/O cache of your lisp.

BTW, your module does not handle reloading of pages gracefully. If I use
Firefox' reload button, the server just keeps spinning.

Juanjo

On Tue, Jul 27, 2010 at 5:24 PM, Louis Höfler <louis.hoefler at gmx.de> wrote:

> Hello everyone, I compiled the cl-who
> package and installed it within ecl.
> I try to execute the following lisp code
>
> (require 'cl-who)
> (use-package 'cl-who)
> (with-html-output (*standard-output*)
>  (loop for (link . title) in '(("http://zappa.com/" . "Frank Zappa")
>                                ("http://marcusmiller.com/" . "Marcus
> Miller")
>                                ("http://www.milesdavis.com/" . "Miles
> Davis"))
>        do (htm (:a :href link
>                  (:b (str title)))
>                :br)))
>
> But the only thing wich is printed out is
> ;;; Loading #P"/usr/lib/ecl-10.4.1/cl-who.fas"
>
> It looks like the evaluation stops after
> the (require 'cl-who) statement.
> If I execute the above code within ecl directly
> in the console, everything works
> without problems, and I also get this line
> <a href='http://zappa.com/'><b>Frank Zappa</b></a><br /><a
> href='http://marcusmiller.com/'><b>Marcus Miller</b></a><br /><a
> href='http://www.milesdavis.com/'><b>Miles Davis</b></a><br />
>
> Does someone know what I am doing wrong?
> My code is here:
>
> http://mod-ecl.git.sourceforge.net/git/gitweb.cgi?p=mod-ecl/mod-ecl;a=blob_p
> lain;f=mod_ecl/mod_ecl.c;hb=25616ed97bbf0485a4d0bba9bfac6d6813dc7cb9
>
> Thank you for the help, Louis Hoefler.
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100728/59ee88d6/attachment.html>


More information about the ecl-devel mailing list