Programmer Guide/Command Reference/GOSUBX

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 16:31, 23 March 2011 by Christian (talk | contribs) (Created page with '<code>GOSUBX <var>label</var> [<var>arguments</var>]</code> :Like <code>GOSUB</code> but no new variable namespace is created (i.e. the subroutine uses the same environment as th…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

GOSUBX label [arguments]

Like GOSUB but no new variable namespace is created (i.e. the subroutine uses the same environment as the caller). This feature can be useful if numerous arguments and data need to be passed or shared, but it should be used with care, because the subroutine can change the caller's variables. The MACROX command implements a comparable feature.

Navigation menu

Personal tools