[fpc-pascal] Value of runner variable after a for loop

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Mar 12 16:12:07 CET 2007

On Mon, 12 Mar 2007, Luiz Americo Pereira Camara wrote:

> Take the following example:
>  for i:= 0 to 2 do;
>  WriteLn(i);
> Can i safely assume that after the for loop the value of "i" is 2?

No. I think it is even specified in the pascal standard.


More information about the fpc-pascal mailing list