LoginLogin

Label bug

Root / Programming Questions / [.]

12Me21Created:
So, I was working on a 1 page program in width 16, and I did
NEXT@L...GOTO @L
Which, according to the syntax highlighting, should have worked. Somehow that resulted in an undefined label error. (it also happens with PRINT, which is light blue also for some reason...) Anyway, I also tried it with a function (purple) to see if it would be different and it was.
BEEP@L
GOTO @L
= type mismatch (somewhat more expected)

So, I was working on a 1 page program in width 16, and I did
NEXT@L...GOTO @L
Which, according to the syntax highlighting, should have worked. Somehow that resulted in an undefined label error. (it also happens with PRINT, which is light blue also for some reason...) Anyway, I also tried it with a function (purple) to see if it would be different and it was.
BEEP@L
GOTO @L
= type mismatch (somewhat more expected)
Know what that means, send the bug report via Miiverse :P

Oh I completely forgot about making this. Anyway this isn't really a bug, just caused by the fact that NEXT can "eat" a value.