BUG: Console writer flush

Lee Salzman lsalzman1 at cox.net
Mon Oct 4 06:57:41 PDT 2004


Oh, yeah, there seems to be another similar oversight with "flush".
WrapperStream did not forward it to the underlying stream, but since
Stream defines a do-nothing flush method already, we never got any sort
of error. I just put a fix for this in CVS.

Lee

On Mon, Oct 04, 2004 at 08:30:21AM +0200, Waldemar Kornewald wrote:
> Lee Salzman wrote:
> >Actually, neither your fix or my fix were correct. The actual solution
> >was to make WrapperStream forward "resource" to the underlying stream.
> >Since Console writer was a PrettyPrinter, and "resource" wasn't
> >forwarded to the underlying ExternalResource Stream, it was causing
> >problems. It's fixed now.
> 
> There is a BeOS issue I wanted to solve that way. After having loaded 
> the image, stdout is never flushed which causes the REPL prompt (Slate 
> 1>, etc.) to be always printed _after_ you enter something. One would 
> have to load external.slate. It would be nice if that were not necessary 
> (since Console writer flush calls a method that lives in the image, anyway).
> 
> Bye,
> Waldemar Kornewald
> 




More information about the Slate mailing list