Documentation GOSUB quick help

Apr 2, 2011
1,441
10
54
North Carolina, USA
TCMD version 13 -

[D:\]gosub /?
Execute a subroutine in the current batch file.
GOSUB ["filename"] label [args]
[D:\]

Since it allows a "filename" now - it might be worth changing the help to reflect it....
 
May 24, 2010
855
0
Northlake, Il
And just to be a stickler about it, the word "current" isn't accurate, either.

And the phrase "another part of the batch file" is no longer accurate, either, both because it could be another part of another batch file and since a subroutine can call itself (up to 22 levels "deep" in TCC 13.04.61) the phrase "another part" isn't accurate, either.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
TCMD version 13 -

[D:\]gosub /?
Execute a subroutine in the current batch file.
GOSUB ["filename"] label [args]
[D:\]

Since it allows a "filename" now - it might be worth changing the help to reflect it....

I have no idea what you're asking for here -- both the quick help and the full help document "filename".
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I believe Charles is saying that "Execute a subroutine in the current batch file" is not a good summary of what GOSUB does since the subroutine need not be in the current batch file.

The existing description is technically accurate, because the subroutine is executing in the context of the current batch file. But I'll reword it a bit so as to remove the potential confusion.
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
Sorry for my delayed reply but David was / is correct in what I meant. And thank you Rex too.
 
Similar threads
Thread starter Title Forum Replies Date
fpefpe How to? gosub and label search Support 4
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
JohnQSmith GOSUB Support 5
D Documentation Modifying GOSUB parameters Support 10
J How to? Speedup of gosub/return Support 8
fpefpe How to? Passing arg to gosub with white spaces Support 2
Stefano Piccardi issue: redirecting GOSUB output Support 11
M A problem with nested Gosub's/ExecStr's Support 14
I TCC crashes on gosub after long command line Support 0
G gosub variables Support 9
Joe Caverly Quick Search in eWriter Help Support 1
Fross Quick Function Question Support 17
M Quick tip: Close tabs in TCMD Support 0
vefatica History recall turns off Quick-Edit Support 4
vefatica Quick help nit Support 0
S How to? Mark threads for quick retrieval Support 3
P Quick help for aliases Support 3
C Add link to ewriter help to program group... Support 3
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Favorites in eWriter Help Support 6
vefatica Online help? Support 2
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
JohnQSmith New online help file wrong logo Support 7
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
Charles Dye More help nits Support 0
D Documentation Typo in COPY help Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
K_Meinhard How to? Help window position Support 7
U Command help on file names Support 5
D Documentation Help "Startup" page does not describe global lists Support 0
vefatica Help disappears? Support 6
rchapmanitt Help Purchasing Support 2
Charles Dye Documentation Help nits: @ZIPFILECRC Support 0
C version help Support 3
C Documentation Help Nit. REN / RENAME Support 0
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
vefatica Help for @PID Support 2
vefatica Need help with XML Support 3
Alpengreis Documentation Minor issue in help file for view /E Support 1
R Documentation Advanced Directives Help Support 0
R Documentation Help Nit with SETP Support 0
R wmic command help Support 9
R Documentation Help Nit > bdebugger View Menu Support 0
R Documentation A couple of Help nits Support 0
R Documentation Help typo Support 1
MikeBaas How to? I need help with RD Support 5
R Documentation v25 Help Comments Support 1
Joe Caverly DIRectory Colorization in v25 Help File Support 0
vefatica Help nit Support 0

Similar threads