On Nov 29, 2007 5:15 AM, Vasiljevic Zoran <[EMAIL PROTECTED]> 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? ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel