9 Dec
2018
9 Dec
'18
5:54 p.m.
On page 273 of "Programming in Oberon" Wirth and Reiser write: FORStatement = "FOR" ident ":=" expression "TO" expression ["BY" ConstExpression "DO"] StatementSequence "END" And indeed when I try to put a variable as step size, the compiler doesn't like it. This means I cannot write reusable code, which allows to be executed under different conditions with different step sizes. I am sure, there is some reasoning behind this, but I find it kind-off inconvenient. Regards, Dieter