On 03.06.2018 17:11, Florian Klämpfl wrote:
Am 21.05.2018 um 20:58 schrieb Ondrej Pokorny:

In this (your) case I don't expect anything - it is one of FPC's favorites "undefined behaviour" because as documented, it is not allowed to change the loop variable value within a for loop.

Yes, just asking :)


In my case (without the I:=1 assignment) I don't change the loop variable value - it is absolutely valid to read from it.

I have fixed this.

Very good, thank you!

Ondrej
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to