Steve Schveighoffer wrote:
This is wrong on two counts.
First, david is right, changing from long to ulong is a mistake. long is
correct, this supports 2^63 bytes, which is plenty larger than the current 2GB
limitation, and it allows negative seeking without issue.
Good point. Fixed.
Second, you cannot do a tell on the file handle, because you need to take into
account the buffer.
My understanding is that calling fflush() before lseek should be fine.
See my upcoming commit.
Andrei
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos