Simple .d file passed in -m32 model, but failed in -m64 model. Why?
David Nadlinger
see at klickverbot.at
Sun Feb 20 06:31:17 PST 2011
On 2/20/11 3:25 PM, David Wang wrote:
> Why the same source file shows different results?
Because the array index »i« in your foreach loop is of type size_t,
which is uint (32 bit wide) on x86_32 and ulong (64 bit wide) on x86_64.
By the way, using D2, a shorter way to initialize the array would just
be »auto months = array(iota(1,13))«.
David
More information about the Digitalmars-d
mailing list