(05-02-2025, 02:19 AM)eoredson Wrote: Is this a bug or a feature?With the interpreted GW-BASIC, it gives that "Next without for" error, which makes sense. Being interpreted, going from line 10 to line 30, the program has no idea there is a For loop going on at line 20.
It keeps displaying 0 continuously..
Should it say 'Next without for'??
Code: (Select All)10 GoTo 30
20 For l = 1 To 10
30 Print l;
40 Next
50 End
QB64, though, is a compiled BASIC. The BASIC gets transpiled to C++ before being compiled to an EXE. We would need to dissect the C++ code to see what the compiled program is doing.