RETURNing from GOSUB inside a function does not work correctly
#1✎ 140012Me21AdminSyntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express YourselfSecond YearMy account is over 2 years oldWebsiteOn the other thread, someone idiot pointed out that RETURN doesn't work as you'd expect in functions that return things:
PRINT EXAMPLE()This gives an uninitialized variable used error at the second RETURN. However, if you give a value that is the same type as the real return value:
PRINT EXAMPLE()Then it will work just as expected.
#2✎ 82bananaRNGHiddenEaster EggsDisguisedHiddenWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming Strengthsomeone? you bastard