Overview
| Artifact ID: | e239a82c84846c802bb5a43c67c631ebc5fdc190 |
|---|---|
| Ticket: | 410043ffffffffffffffffffffffffffffffffff
"if" does not evaluate same as "expr" |
| User & Date: | nobody on 2001-03-20 23:23:36 |
Changes
- icomment:
Logged In: NO The problem seems to be that the arguments to [expr] aren't braced. I added: if { [expr {$newval > $vmax}] } { puts "'if' with braced expr says $newval > $vmax" } else { puts "'if' with braced expr says $newval <= $vmax" } and it agreed with the raw [if]. I imagine this has to do with shimmering but that's a guess. You ought to brace [expr] arguments for performance anyway so this doesn't seem like a real issue. -- Chris Nelson ([email protected]), who can't manage to log into SorceForge reliably - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"