From: Stephen D. <sd...@gm...> - 2007-11-29 06:32:21
|
On Nov 29, 2007 5:15 AM, Vasiljevic Zoran <zv...@ar...> wrote: > > On Nov 28, 2007, at 10:39 PM, Stephen Deasey wrote: > > > > > Tcl and C are fine. The example is broken. > > > > Ah, Stephen... > > set value [ns_config -bool /missing/thing missing_par false] > if {$value == 0} { > puts "should it print?" > } > > In the pre-checkin version it didn't > because value was set to string "false" > and this ain't equal number zero. > In the post-checkin version it does as > it always substitutes the result to 0 or 1. > > Is this now "broken"? It's equally as broken as the other example, and for exactly the same reason. Are you saying that "false" is not false and "true" is not true? If not, then whey insist on using integer equality expressions? |