According to Laussy Fabrice:
Hi again list, (sorry Peter)
No problem. (* To all: Right now, I have plenty run out of time, so I only answer questions I do not need to think about. If I do not answer an email immediately it simply means that the problem is not of that class. ;*)
Here is a sample of some code I am currently working on:
1 if (abs(x-transient^.x)<2) then 2 if (abs(y-transient^.y)<2) then 3 tmp:=tmp+1; 4 if (transient^.x=x) and (transient^.y=y) then
Well, what happens is that everything goes ok for the first test, but whatever the value is for the second one (y-transient^.y), the PC will jump to line 4, never doing 3.
It might be a problem with incorrect debugging information produced by GPC. Please check the value of `tmp' with a `writeln'. BTW, you checked the value of `x' too, didn't you? ;-)
Subject: I should really update my GPC version!
Correct. :-) Good luck, Peter -- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/