WAD New envars for @LINES are not hidden

Apr 13, 2010
307
7
61
The Hague
I'm curious why you would want to design it that way?
Me, I'm comparing them with the likes of e.g. _copy_files
 
Because they're variables generated by a variable function, not a command. The variable parsing nesting would get ugly.

Why do you care?
I think that one of the things that's confusing here is that some of these new variable names begin with a _ character. Even though there has never been any prohibition against beginning an environment variable name with a _, we, or at least I tend to automatically assume that any variable beginning with _ is a TCC system variable. I had to read the help several times before it registered that these were ENVIRONMENT variables.

Another point of possible confusion is that some of these new variables begin with _ and others don't. For example we now have two new variables associated with @SELECT, SELECT_LINE and _SELECT_KEY. Is there any kind of rule of thumb that we can use to help us remember or understand which variables begin with an underscore and which do not?

--
Howard
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Actually the variables are SELECT_LINE and _SELECT_KEY. What is confusing is that for the first time an environment variable (_SELECT_KEY) has been defined with a leading underscore. In all previous version the leading underscore was reserved for internal variables. Of course, there is little practical difference - only the IF DEFINED test behaves differently. One could always define one's own environment variable (ev) with the same name as an internal variable (iv), and once done, only the value of the ev was accessible (until UNSET was used to undefine the ev, making the value of the iv accessible again).

The debugger allows viewing / monitoring iv-s, not just ev-s.

Rex: @execarray reports a count in _execarray which is an iv - why is that one easier for the parser than using iv-s for @SELECT and @LINES reports?
 
Similar threads
Thread starter Title Forum Replies Date
D How to? Use typed envars using regex. Support 3
vefatica Continued lines (^) in a library routine? Support 5
R Lines between COMMENT & ENDCOMMENT not ignored Support 7
A TCMD - Dir Command puts out blank lines? Support 16
T FFind - can we display n number of lines after the find? Support 2
T WAD Difference between TCC and CMD in handling multi-command lines Support 6
JohnQSmith Weird DIR output (missing lines) Support 1
fpefpe Documentation Comment lines? Support 2
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
B %@lines doesn't count last line without cr/lf at eof Support 1
nikbackm How to? Find duplicate lines in text file Support 0
S Documentation HELP nit: @LINES Support 5
B Select and run lines from Command Input panel? Support 1
T Documentation @LINE[CON,n] @LINES[CON] not documented (bug?) Support 4
M How to? Parsing lines containing double quotes... Support 3
Stefano Piccardi echoerr truncates long lines Support 9
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
samintz How to? Pull out multiple matching lines Support 5
W Copy+Paste without breaking long lines as default? Support 1
L "for" in multiple lines Support 2
vefatica @LINES, long lines, TCC disappears Support 7
D Blank lines in jpstree.idx Support 3
T @Word from Lines with Pipes Support 3
vefatica @LINES[]? Support 1
J Extra blank lines during paste Support 6
vefatica How many lines are in this file? Support 17
nikbackm Trim last N lines from a file Support 6
T How do you echo lines with special characters to file? Support 4
B @lines: first line in the file is numbered 1 Support 0
R Reading an Unicode file with more than 8191 lines Support 1
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
cgunhouse Increase in I/O on Hidden TCC Processes Support 11
R Debugsession must not turn hidden objects on. Support 11
vefatica Tabbed toolbar hidden ... not remembered! Support 11
I Hidden files on USB Drive Support 4
C Screens of different size and hidden console Support 8
A How to? Can't change directory ("cd") into system hidden files Support 13
R WAD issue with filename completion with system and hidden files Support 8
rps Documentation Help file revision - Copying hidden DESCRIPT.ION files Support 19
D Take Command Prevents Seeing Hidden Files Support 2
vefatica Hidden console doesn't close Support 34
R Delete command sets directory attributes to hidden & system Support 46
D copy /w deletes hidden files and excluded files Support 13
J hidden directory copy bug Support 1
S OPTION dialog for transient or hidden sessions Support 1

Similar threads