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

2016-02-29 Thread ag0aep6g via Digitalmars-d-learn
On 29.02.2016 12:06, 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? On Windows, the compiler flag -m32 is

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

2016-02-29 Thread Rikki Cattermole via Digitalmars-d-learn
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 depend

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

2016-02-29 Thread Suliman via Digitalmars-d-learn
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?