This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: getting interpreter default port...
- From: Stan Pinte <stan dot pinte at wanadoo dot be>
- To: Pinte_Stanislas at emc dot com, kawa at sources dot redhat dot com
- Date: Sat, 11 May 2002 19:38:03 +0200
- Subject: Re: getting interpreter default port...
some precisions:
I am embedding kawa into an existing application, with a runnning kawa
interpreter inside it, interpreting small Scheme scripts.
I succeed in sending S-expressions to the Scheme.eval() method, but an
S-expr like
(display “hello)
returns a gnu.mapping.Values containing no values...
and I cannot reach the default output port, to be able to capture what
should be printed out, with (display “hello)...
any ideas?
thanks a lot,
Stan.
At 10:00 10/05/2002 -0400, Pinte_Stanislas@emc.com wrote:
>hello,
>
>I have started an interpreter like that:
>
>Scheme scm = new Scheme();
>Object x = scm.eval("(+ 3 2)");
>System.out.println(x);
>
>but I cannot get to the default output port...
>
>I tried:
>
>OutPort.setOutDefault(new OutPort(outStringWriter, true, "out"));
>OutPort.setErrDefault(new OutPort(errStringWriter, true, "err"));
>
>but nothing gets written to it...
>
>anyone has got a clue?
>
>thanks a lot.
>
>Stanislas Pinte - Associate Software Engineer.
>
>Phone: +32-(0)15-401.371
>Fax: +32-(0)15-401.400
>Address: Schaliėnhoevedreef 20i, B-2800 Mechelen, Belgium