stream.getc() doesn't recognize eof
Brian White
bcwhite at pobox.com
Thu Mar 13 07:18:23 PDT 2008
> So, because c == char.init and nothing has modified it, the path which
> calls readBlock will return char.init when EOF is reached.
Ah, thanks!
I must say that this technique worries me somewhat. "readBlock" is an
abstract function definable by any derived class and I don't believe
that "c must remain unchanged where data is not stored" is a defined
output requirement of that method.
-- Brian
More information about the Digitalmars-d-learn
mailing list