I have a label in my game and I want to do a goto. When I compile I get "Compile Error, Labels must appear before a loop or DefData statement", yet the example for "Goto" (in the docs) compiles fine. What is going on?
It's not slugish programming. It just has the potential to mess with scope and screw up the state of the stack, causing random crashes and making it near impossible to maintain code. Good for job security tho'.
Goto wasn't sluggish when the Spectrum was invented, anyway ... it was just the one thing, Goto Shutdown, called in my main loop so that the shutdown proc could be run. I just made it into a function in the end, so no worries. Actually, some people even decry the use of Return to exit prematurely from functions, thinking everything should be indented/nested hugely even if it actually makes the code harder to understand...