Forum OpenACS Development: Re: Language lawyering

Collapse
14: Re: Language lawyering (response to 1)
Posted by Don Baccus on
This is good stuff.  I think the generousity of Tcl truth may date from Tcl 8 as I *think* that's when "string is true" was implemented, and clearly the "if" command is using "string is true" on the result (I say this because "string is true" is documented to accept <>0,t,true,yes, the very semantics you've uncovered)

So I suspect the old coding style you've uncovered may be due to Tcl 7.x semantics.

I've switched to using "string is true" because I didn't know that "if" was doing this automatically so now we can clean these out, too, can't we? :)

And, yes, we can start using "eq" once we require AOLserver 4.0 (not until after OpenACS 5.0, unfortunately, because AOLserver 4.0's still beta and though it should be finalized before OACS 5.0 is finalized it would be rather harsh to force folks to switch right away)

Until we know we can retire aol3.3+ad13 we can't really make this switch ...