From: Vasiljevic Z. <zv...@ar...> - 2007-11-28 19:38:13
|
On Nov 28, 2007, at 8:14 PM, Stephen Deasey wrote: > > {$bool == 1} is not a valid test of truthiness. ... so Tcl and C are "broken"? > > > And it's uneccessary: > > set bool 1 > if {$bool} { > puts yup > } > > set bool yes > if {$bool} { > puts $yup > } It is not but it is widely used. When Tcl disallows us to use 1/0 for true/false and test on 1/0 equality for it, then we can talk more about it. Cheers Zoran |