Regarding UnbufferedFile, I think we should sit down and analyze again what we want to achieve. I understand it's not easy to remember the buffering mode for a file once opened, but since File intercepts fopen() and setvbuf(), it should be easy to add a field to File that tells whether it uses buffering or not, and to set buffering upon opening the file. I don't think an entire new type is justified here.

Andrei

On 5/30/10 3:05 PDT, Lars Tandle Kyllingstad wrote:
I agree.  That's what I did for UnbufferedFile, which I hope to add to
std.stdio:

http://github.com/kyllingstad/ltk/blob/master/ltk/stdio.d

-Lars

_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to