March 5, 2013
9:49 p.m.
Antoine Pitrou wrote:
Le Tue, 05 Mar 2013 10:14:08 +1300, Greg Ewing <greg.ewing@canterbury.ac.nz> a écrit :
Maybe you could be allowed to read() from the buffered stream after detatching the underlying source, which would then return any data remaining in the buffer.
Perhaps detach() can take an optional argument for that indeed.
Does it need to be optional? Is there likely to be any code around that relies on read() *not* working on a detached stream? -- Greg