This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]