Marcel Martin wrote:
Why not? I expect that the compiler evaluates constant expressions, and
creates the best code for the resulting values.
The best code is, before all, the correct code.
So we have to find out what is *correct*.
In the case of Inc(x, SomeConstant) the value of the
Marcel Martin a écrit :
Hans-Peter Diettrich a écrit :
As outlined before, the above assignment of x:=-x should
raise an range check error. A comparison of x=-x will return False, in
the Int64 range.
Not with FPC. (Moreover, I didn't make comparisons, I only
used := and -.)
But, if X is a