Revision as of 21:50, 23 January 2008 editVogelfrei (talk | contribs)190 editsNo edit summary← Previous edit | Revision as of 14:46, 27 January 2008 edit undo75.16.114.249 (talk)No edit summaryNext edit → | ||
Line 1: | Line 1: | ||
'''GOSUB''' is a command in many versions of ]. GOSUB statements branch to simple kinds of ] without (sometimes with) parameters or local variables, the ] command resuming program flow from the point at which GOSUB was invoked. | '''GOSUB''' is a command in many versions of ]. GOSUB statements branch to simple kinds of ] without (sometimes with) parameters or local variables, the ] command resuming program flow from the point at which GOSUB was invoked. | ||
The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. |
The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. Some BASIC implementations, such as ] do not implement GOSUB. This may lead to overuse of the ] statement and to less structured code. | ||
{{compu-lang-stub}} | {{compu-lang-stub}} |
Revision as of 14:46, 27 January 2008
GOSUB is a command in many versions of BASIC. GOSUB statements branch to simple kinds of subroutines without (sometimes with) parameters or local variables, the RETURN command resuming program flow from the point at which GOSUB was invoked.
The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. Some BASIC implementations, such as FreeBASIC do not implement GOSUB. This may lead to overuse of the GOTO statement and to less structured code.
This programming-language-related article is a stub. You can help Misplaced Pages by expanding it. |