2 ms·
Guess I'm showing my age, but the first version of BASIC that I learned had the "gosub" command [1] for subroutine calls. N.B.: I'm using one-based indexing fo
by CoastalCoder 3y ago
Guess I'm showing my age, but the first version of BASIC that I learned had the "gosub" command [1] for subroutine calls.
N.B.: I'm using one-based indexing for my links here because that's apparently what early BASICs used [2] :)
[1] https://picaxe.com/basic-commands/program-flow-control/gosub/ https://picaxe.com/basic-commands/program-flow-control/gosub...
[2] https://alandix.com/blog/2021/07/27/a-brief-history-of-array-indices-making-programs-that-fit-people/ https://alandix.com/blog/2021/07/27/a-brief-history-of-array...
- layer8 3y agoYes, but the built-in commands don't use that. You write PRINT "Hello" and not GOSUB PRINT "Hello" Rather, you'd write GOSUB 690 to run your subroutine that starts at line 690.