Lints, Condate and bugs

Eric Poggel dnewsgroup2 at yage3d.net
Fri Oct 29 20:35:54 PDT 2010


On 10/27/2010 4:11 PM, KennyTM~ wrote:
> 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.

It had been a while since I used them.  For some reason I was thinking 
they were exposed through a standard array, but that doesn't make sense 
now that I think about it.


More information about the Digitalmars-d mailing list