Re: can this work?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: can this work?
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tcl
Date : 22. Mar 2025, 13:44:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrmbb6$3vamk$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 3/21/2025 6:56 PM, Rich wrote:
 When the parser is parsing the command, the third "word" of the first
for loop is:
 "\$i $op \$q"
 Due to rule four, variable substitution and backslash substution is
performed on this word, because it is double quoted.
I read "double quoted" a few times - I think you meant "double-quote'd".
So since it double-quoted, the substitutions occur as you described. And whatever results from that becomes a "static" argument/parameter to the for-loop.  Is this right?  I recall warnings against using double quotes with loops since the substitution occurs once.
I guess I could benefit from this if you explain why the for-loop keeps re-evaluating a double-quoted string.

Date Sujet#  Auteur
21 Mar 25 * can this work?12saito
21 Mar 25 +* Re: can this work?2saito
25 Mar 25 i`- Re: can this work?1Simon Geard
21 Mar 25 `* Re: can this work?9Emiliano
21 Mar 25  `* Re: can this work?8saito
21 Mar 25   `* Re: can this work?7Rich
22 Mar 25    `* Re: can this work?6saito
22 Mar 25     +- Re: can this work?1saito
22 Mar 25     `* Re: can this work?4Rich
26 Mar 25      `* Re: can this work?3et99
26 Mar 25       `* Re: can this work?2Alan Grunwald
27 Mar 25        `- Re: can this work?1et99

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal