On Nov 29, 2007, at 8:10 AM, Stephen Deasey wrote:
> It was returning a boolean value, guaranteed. It used Tcl_GetBoolean
> to parse the value from the config file, and Tcl_GetBooleanFromObj to
> check the default value. If both of those calls return TCL_OK, then
> whatever comes out the other side is a valid boolean value.
What about:
puts "[expr {0 == 0}]"
What is this going to return in your tclsh?
Is it going to say
true
or
t
or
yes
?
NO. It is printing:
1
It will NEVER print anything else. Hence you cannot
test string equality for expressions with "false"/"no" etc
but you CAN test it with numerical value of 0 (zero)
or non-zero.
Allright?
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel