Why .length on Windows is int and on Linux is ulong?

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 29 03:12:53 PST 2016


On 01/03/16 12:06 AM, Suliman wrote:
> On Windows next code work fine:
> int len = fullimgurl.length;
>
> On Linux DMD get error that:
> Error: cannot implicitly convert expression (fullimgurl.length) of type
> ulong to int
>
> Why on every OS length have different size?

Its not OS dependent, its arch dependent.
On Windows you are building in 32bit mode but on Linux 64bit.



More information about the Digitalmars-d-learn mailing list