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

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 29 03:06:34 PST 2016


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?



More information about the Digitalmars-d-learn mailing list