On 5/13/2012 9:39 AM, Stewart Gordon wrote:
It seems that the main obstacle is rewriting the relevant methods in std.stream. The current implementation doesn't make sense anyway - reading the entire contents of a file is certainly not the way to generate a hash or string representation of the stream. I'm thinking the hash should probably be the stream handle, and the string representation could perhaps be the full pathname of the file. Of course, what it should be for non-file streams is another matter. (This would be a change at the API level, but when the API's as fundamentally flawed as this....)
I'd like to see std.stream dumped. I don't see any reason for it to exist that std.stdio doesn't do (or should do).
The only reason it's there at the moment is for backwards compatibility.
