[fpc-pascal] Illegal counter variable?

Martin Wynne martin at templot.com
Wed Sep 11 14:41:17 CEST 2019


> I am not aware of any Pascal implementation that does have a STEP 
> parameter for FOR loops

If step is wanted, it's easy enough:

For n:=a to b Do
   Begin
     if n Mod step <> 0 then Continue;
     ...


Martin.



More information about the fpc-pascal mailing list