Forum OpenACS Improvement Proposals (TIPs): Re: template::data::validate::integer allows leading zeros

Collapse
Posted by Don Baccus on
Oh, Tcl implements the stupid leading-zero-is-octal convention? What hell hath C wrought. SQL, coming from the Pascal heritage, doesn't implement that devil-spawn of a convention :)

OK, then disallowing numbers with leading zeros is fine.

Collapse
Posted by Dave Bauer on
string is integer exists now, so that seems like a logical choice to validate integers now.
string is integer does not solve the discussed problem.

set x 0111; puts [expr {[string is integer $x] ? $x : 0}]

outputs 73

Cheers, -gustaf neumann