For next loop

Rickharris

Senior Member
This is odd and I am sure didn't happen previously:

My 5.2 ver picaxe programmer allows you to set a for - next loop without the next state,ment.

I "think" previously this errored but now it doesn't??

Any one else reproduce this

Code:
start:
for b0=1 to 10
wait 1
goto start

Technical?
 

Technical

Technical Support
Staff member
The compiler errors on next without for, but not the other way around - this was deliberate in the past (ask Hippy why!).

However now the new compiler uses the 'for optimisation' by default we will think about adding the warning to the compiler.
 
Top