Posted by hussein on July 22, 2000 at 15:28:03:
In Reply to: Re: Tell me I'm not the only one... posted by Ethan on July 21, 2000 at 09:13:50:
: but what I really want to know is why did he decide to use long ints in some places, on any modern os/compiler a long and an int are the same, unless he was aiming for backward compatability with DOS.
not specifically DOS, but there are still some architectures/compilers in use that are not 32-bit, hence dont use 32-bit "int"s by default ... the C++ spec does not say much about the issue except that "long"s are possibly larger than "int"s ...