Compound expression and order of evaluation
- From: jo@xxxxxxxxxxxxxxxx
- Date: 30 Apr 2007 11:43:59 -0700
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)} {
.
.
.
.
- Follow-Ups:
- Re: Compound expression and order of evaluation
- From: Roy Terry
- Re: Compound expression and order of evaluation
- From: Jeff Hobbs
- Re: Compound expression and order of evaluation
- Prev by Date: ANNOUNCE: Tcl/Tk 8.5a6 release
- Next by Date: Re: Compound expression and order of evaluation
- Previous by thread: ANNOUNCE: Tcl/Tk 8.5a6 release
- Next by thread: Re: Compound expression and order of evaluation
- Index(es):