Thr inline var should not be there to be like C, but to improve readability and prevent bugs caused by uninitialized variable.
After a for loop the loop variable must not be used without being reinitialized. "for var" makes sure you do not accidentally use the variable. Using a loop variable after a loop must be a compile error. It makes no sense that fpc compiles code that accesses a variable it knows to be invalid
And other inplace "var .. := .." make sure the variable is initialized at its declaration. No one needs a variable that is uninitialized.
To a compiler engineer that makes no sense: E.G. The
for part makes the implied variable
always initialized and not only through type inference ...By default....Silly you... Did you really understand this....?
Usually you know your theory a bit better.... <Sigh, everybody wants to be a programmer <grumpy, can't help it,
> >
That's a sheer lack of understanding how compilers work (not just Pascal compilers, any compiler!)
If you want this kind of variables (just loop invariants) these CAN be determined by the compiler based on the language and still be LL(1).
If it is a good choice, I doubt it, because of such ill informed comments.. (and you are not a troll, I know, it is also YOUR job to educate some people on this forum that have DWIM opinions....
).