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 : 21. Mar 2025, 22:07:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrkkeq$2c2m0$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 3/21/2025 3:34 PM, Emiliano wrote:
On Fri, 21 Mar 2025 10:25:17 -0400
 Several. Here are two
    for {set i 1} "\$i $op \$q" {incr i} {puts $i}
 or
    for {set i 1} [format {$i %s $q} $op] {incr i} {puts $i}
 
Nice solutions, especially the former one. I am surprised that the double-quotes work here, with repeated evaluations. Nice approach.
And [format] looks suspicious in its use here :-)
I myself stumbled upon an approach with [expr] earlier.

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