Lints, Condate and bugs

KennyTM~ kennytm at gmail.com
Wed Oct 27 13:11:32 PDT 2010


On Oct 28, 10 03:36, Eric Poggel wrote:
>>>
>>> Making size_t signed would have consequences that are largely unknown.
>>
>> Why .length cannot return a signed integer (not size_t) by default?
>
> What if you're working in 32-bit mode and want to open a 3GB
> memory-mapped file? Then you will also need an unsignedLength property.

I was talking about the .length property of arrays.

std.mmfile.MmFile.length() is already returning a 64-bit number (ulong). 
Making it "63-bit" (long) won't cause it fail with a 3GB memory-mapped file.


More information about the Digitalmars-d mailing list