That won't work.(I hope...
)
Loop variables need to be known at compile time.
That
does work, after all its only calling a function (no matter how bad it looks). The ranges of the loop don't need to be known at compile time (cause otherwise any
for i := 0 to SomeList.Count do-loop would not work). The important point is that the ranges are only evaluated
once and that is guaranteed by the code that the compiler generates.
fpc4.0 release time ?
Considering that it's not even clear whether the next major release will be 3.4 or 4.0 I'd say 4.0 will be released at least in this century. 🤷♀️