SPIN2 repeat ... from ... to ... step ... BUG?
wummi
Posts: 32
in Propeller 2
In SPIN1 the following Code
In SPIN2
D := 2 repeat Index from 5 to 10 step D --DIndex is: 5, 6, 6, 5, 3 {Spin1 Manual v1.1 Page 192}
In SPIN2
D := 2 repeat Index from 5 to 10 step D --D debug(sdec(Index,D)) Cog0 Index = 5, D = 1 Cog0 Index = 7, D = 0 Cog0 Index = 9, D = -1Var D is manipulated in the loop but the step size is constantly 2
Comments
The from, to, and step only get evaluated once.