June 16, 2009
11:38 p.m.
Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes:
Anything else such as peek() that doesn't explicitly mention the buffer should fit into the abstraction properly.
peek() doesn't "fit into the abstraction" since it doesn't even exist on raw streams. While buffered and non-buffered streams have a reasonably similar API, expecting them to behave the same in all circumstances is IMO unrealistic. Antoine.