[phobos] phobos commit, revision 1877

Andrei Alexandrescu andrei at erdani.com
Tue Aug 17 00:09:36 PDT 2010


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


More information about the phobos mailing list