grunwald@FOOBAR.COLORADO.EDU (Dirk Grunwald) (01/13/90)
g++.xtar.Z from trix.ai.mit.edu from 1/12 version of about 2:00
libg++.xtar.Z from labrea.stanford.edu
following program..
#include <stream.h>
main(int argc, char **argv)
{
ostream *foo;
foo = new ostream("/tmp/raboof", io_append, a_use);
(*foo) << "now is the time for all good\n";
(*foo) << "now is the time for all good\n";
(*foo) << "now is the time for all good\n";
}
produces only one line of output on a DECstation-3100. Has anyone else
seen this with other platforms? Has anyone seen this on a
DECstation-3100?
ham@Neon.Stanford.EDU (Peter R. Ham) (01/14/90)
I've seen this problem too. I think that the problem is that the rest of the lines are pending output and foo->flush should clear them. I don't think it should be necessary. Either the \n should cause flushing or the destructor should. One of the maintainers of libg++, I forget the name, said that he knew about the problem and was still working on it. -- Peter Ham PO Box 3430 (h)(415) 322-4390 MS Computer Science Student Stanford, CA ham@cs.stanford.edu Stanford University 94309 (o)(415) 723-2067