[fpc-devel] Assignment to for..in loop variable

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Mar 13 14:17:18 CET 2011


On 13 Mar 2011, at 14:02, Alexander Klenin wrote:

> 1) In the current implementation, FPC should at least warn on attempt
> to change for..in loop variable
> (I assumed that since it compiles, it works, and it cost me much time
> to debug this)

It is forbidden when you use regular for-loops (except for in TP mode for compatibility). It's a bug that it is allowed for for-in loops, so please file a bug report.


Jonas


More information about the fpc-devel mailing list