Revision as of 00:02, 2 February 2011 edit68.183.81.225 (talk) Added vernacular used at one University class← Previous edit | Revision as of 14:47, 22 March 2011 edit undoOskilla (talk | contribs)69 edits Undid revision 411476860 by 68.183.81.225 (talk) non-encyclopedicNext edit → | ||
Line 2: | Line 2: | ||
Not all BASIC implementations support GOSUB. For example, in ] it is considered as deprecated in favor of ]/FUNCTION, and is disabled by default.<ref>{{cite web|url=http://www.freebasic.net/wikka.php?wakka=KeyPgGosub|title=GOSUB|date=2008-05-08|accessdate=2008-07-04|author=|publisher=|quote="Gosub support is disabled by default in the -lang fblite unless the Option Gosub statement is used."}}</ref> | Not all BASIC implementations support GOSUB. For example, in ] it is considered as deprecated in favor of ]/FUNCTION, and is disabled by default.<ref>{{cite web|url=http://www.freebasic.net/wikka.php?wakka=KeyPgGosub|title=GOSUB|date=2008-05-08|accessdate=2008-07-04|author=|publisher=|quote="Gosub support is disabled by default in the -lang fblite unless the Option Gosub statement is used."}}</ref> | ||
GOSUB was also used at U.C. Irvine by Professor Dan Frost to label a project in his ICS 52 Software Engineering class, the 'substitute teacher calling program.' | |||
{{compu-prog-stub}} | {{compu-prog-stub}} | ||
Revision as of 14:47, 22 March 2011
GOSUB is a command in many versions of the BASIC computer programming language. 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.
Not all BASIC implementations support GOSUB. For example, in FreeBASIC it is considered as deprecated in favor of SUB/FUNCTION, and is disabled by default.
This computer-programming-related article is a stub. You can help Misplaced Pages by expanding it. |
See also
References
- "GOSUB...RETURN Statement Details". Microsoft. 1988. Retrieved 2008-07-04.
- "GOSUB". 2008-05-08. Retrieved 2008-07-04.
Gosub support is disabled by default in the -lang fblite unless the Option Gosub statement is used.
This programming-language-related article is a stub. You can help Misplaced Pages by expanding it. |