Re: Compound expression and order of evaluation
- From: "Roy Terry" <roy@xxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 19:00:29 GMT
<jo@xxxxxxxxxxxxxxxx> wrote in message
news:1177958639.879691.256320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Can anybody confirm for that in the following code, that the regsub
expression is always evaulated first, so that I can be certain that
Extras will always be correctly set? I've looked on the Wiki and in
"Practical Programming" but I cannot find the answer.
Many thanks,
Jo.
set Extras "xx"
set LengthCheck 12
set BitMap "101010101010"
if {([regsub -all {[0-1]} $BitMap "" Extras] == $LengthCheck) &&
([string length $Extras] == 0)} {
Confirmed. Read the expr
man page.
.
.
.
.
- References:
- Prev by Date: Re: Compound expression and order of evaluation
- Next by Date: Re: TCL Yahoo Finance's Whereabouts
- Previous by thread: Re: Compound expression and order of evaluation
- Index(es):