Hacker News new | ask | show | jobs
by zupreme 1811 days ago
Forgot about 10 goto 10 eh?
1 comments

You should find it works! Once you type run, the caret will disappear as the program does nothing infinitely. Press Esc to break the program to carry on!

But it should be 20 goto 10 if you want to print the same text again and again.

Note that there is a bug:

    10 PRINT "OK"
    20 GOTO 1
That reports an error "Cannot go to a nonexistant line". I think "real" BASIC interpreters would fall-through to the 10-line. I know my own toy BASIC does:

https://github.com/skx/gobasic

Edit: Have reported issue, so it doesn't get lost in this thread.

Yeah, I've since fixed that bug when I saw it on GH Issues! Thanks for the bug report.
Amazing work. Cheers.