length's type.
Olivier Pisano
olivier.pisano at laposte.net
Sun Jan 28 16:16:34 UTC 2024
On Sunday, 28 January 2024 at 08:55:54 UTC, zjh wrote:
> On Sunday, 28 January 2024 at 06:34:13 UTC, Siarhei Siamashka
> wrote:
>>
>> The explicit conversion `.length.to!int` has an extra benefit
>
>
> I rarely use numbers over one million.
>
> But do I have to consider numbers over `4 billion` every day?
If .length were to be an int, D could not handle array of more
than 2G bytes. The whole language would be useless on 64 bit
systems.
More information about the Digitalmars-d-learn
mailing list