This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
OutPort.setOutDefault(...)
- From: Pinte_Stanislas at emc dot com
- To: kawa at sources dot redhat dot com
- Date: Mon, 13 May 2002 03:26:33 -0400
- Subject: OutPort.setOutDefault(...)
hello,
I think the Outport is bugged somehow, because when I do this:
Scheme scheme = null;
StringWriter outStringWriter = new StringWriter();
StringWriter errStringWriter = new StringWriter();
OutPort.setOutDefault(new OutPort(outStringWriter, true, "out"));
OutPort.setErrDefault(new OutPort(errStringWriter, true, "err"));
scheme = new Scheme();
scheme.eval("(display 'hello)");
System.out.println("out: " + outStringWriter.toString());
System.out.println("err: " + errStringWriter.toString());
nothing gets printed, whereas "hello" should be outputted to the standard
out port, shouldn't it?
is this not the desired behaviour?
thanks a lot,
Stan
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