Tango I/O bug?
Sean Kelly
sean at f4.ca
Mon Sep 17 13:44:20 PDT 2007
Jason House wrote:
> My friend using a mac has had severe issues getting my project (recently ported to Tango) to run on his machine.
>
> Looking at debug output and doing some tests, it appears that Stdout is not flushing.
>
> Typical offending code:
> auto outStream = new Print!(char)(new Layout!(char),Stdout);
Is this really the line used? The second parameter is supposed to be an
OutputStream, and Stdout is not.
> outStream.formatln("= {}\n", valueToReturn); // adds extra \n and flushes
Seems okay, though it's difficult to say from just that line. Is output
redirected? Are objects being re-used? Is .close() perhaps not being
called if output is to a file?
Sean
More information about the Digitalmars-d-learn
mailing list