Sujet : Re: can this work?
De : simon (at) *nospam* whiteowl.co.uk (Simon Geard)
Groupes : comp.lang.tclDate : 25. Mar 2025, 13:50:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vru8rd$3bgku$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 21/03/2025 14:32, saito wrote:
On 3/21/2025 10:25 AM, saito wrote:
Consider:
>
set q 10
se op "<"
for {set i 1} {$i $op $q} {incr i} {puts $i}
The answer is yes if you put it in an [expr] :-)
The answer is also yes if you use ::tcl::mathop
set q 10
set op "<"
namespace import ::tcl::mathop::$op
for {set i 1} {[$op $i $q]} {incr i} {puts $i}