Strange calculation problem
pelle at mansson.gmail.com
Tue Oct 20 12:29:27 PDT 2009
You find it well defined and expected that the compiler translate 1024*1024*1024*2
Why would you not want it to actually become, you know, what you write?
Since it is a ulong that it should fit in, why would you expect the compiler to
follow signed integer overflow rules? I mean, is there any time you actually want
it to become 18446744071562067968 instead of the expected value?
More information about the Digitalmars-d-learn