On 28.11.2013 18:32, Tomas Hajny wrote:
On Thu, November 28, 2013 18:12, Klaus Hartnegg wrote:
Sorry, I forgot to mention there is {$Q-} in the source.
I believe that $Q- covers overflow checks, not range checks.
Thanks, this showed me the right direction.
Explanation: I'm trying to port
On 29 Nov 2013, at 11:00, Klaus Hartnegg wrote:
Explanation: I'm trying to port code from Turbo Pascal. There word1-
word2 does wrap around with {$Q-}{$R+}. And dec(word1) never checks
for overflow, even with {$Q+}{$R+}.
FreePascal seems to have a wider definition of Range Check, and the
On Fri, November 29, 2013 11:00, Klaus Hartnegg wrote:
On 28.11.2013 18:32, Tomas Hajny wrote:
On Thu, November 28, 2013 18:12, Klaus Hartnegg wrote:
Sorry, I forgot to mention there is {$Q-} in the source.
I believe that $Q- covers overflow checks, not range checks.
Thanks, this showed me