[Ecls-list] Simple Hello word! function
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Mon Jul 5 16:35:27 UTC 2010
Lisp executed code does not print things. This is the REPL. To print stuff
use PRINT in your code and supply an output stream. I think all your
problems stem from an improper redirection of *standard-output*. You are
only seeing what comes out in the error output (i.e. debug statement from
LOAD), while Apache is redirecting your standar output to /dev/null, or
viceversa. I do not know enough from modules to say it for sure, but the
fact that your use of LOAD only produces that statement suggests it.
Juanjo
On Mon, Jul 5, 2010 at 6:20 PM, Louis Höfler <louis.hoefler at gmx.de> wrote:
> Thank you.
>
> I implemented this function
>
>
>
> cl_object mod_ecl_load(char* src) {
>
> cl_object string, stream;
>
> string = make_simple_base_string(src);
>
> stream = cl_make_string_input_stream(1, string);
>
> return cl_load(1, stream);
>
> }
>
>
>
> But this does only print out
>
> #<string-input stream from "(defun hello-wor...">
>
This should not be printed by itself, but in a message like
;;; Loading #<string-input stream from ...>
do you print manually the output of mod_ecl_load()?
Juanjo
--
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/20100705/7e2704d0/attachment.html>
More information about the ecl-devel
mailing list