Skip to content
Tcl Source Code Artifact [87676f5fff]
Login

Artifact [87676f5fff]

Artifact 87676f5fffaa7fd3937fd5921a838414ca1c05ae:

Ticket change [87676f5fff] - New ticket [3525462fffffffff|3525462fff] <i>Expr documentation bug (expr {&quot;0y&quot; &lt; &quot;0x12&quot;})</i>. by zoltan3 on 2012-05-10 08:30:16.
D 2012-05-10T08:30:16
J assignee nobody
J cmimetype text/plain
J comment Following\scan\sbe\sseen\sin\sthe\sexpr's\smanual:\sexpr\s{"0y"\s<\s"0x12"}\sreturns\s1,\sbecause\sit\sis\sdone\susing\sstring\scomparison\safter\sthe\ssecond\soperand\sis\sconverted\sto\sthe\sstring\s18.\sBut\sthe\scommand\sreturns\s0\sin\sthe\sTcl\sinterpreter.\nIn\sthe\smanual,\spart\s"STRING\sOPERATIONS"\swe\scan\ssee:\s"Because\sof\sTcl's\stendency\sto\streat\svalues\sas\snumbers\swhenever\spossible,\sexcept\sin\sthe\scase\sof\sthe\seq\sand\sne\soperators.".\sAnd\sI\sexpect\sthe\ssame\son\sthe\sground\sof\sthe\spart\s"OPERANDS":\s"Where\spossible,\soperands\sare\sinterpreted\sas\sinteger\svalues."\n\nBut\sis\slooks\slike\sa\sbug\sin\sthe\sdocumentation.\sOnly\sif\sboth\soperands\scould\sbe\sconverted\sto\snumbers\swould\stheir\snumerical\svalues\sbe\scompared.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter zoltan3
J subsystem None
J title Expr\sdocumentation\sbug\s(expr\s{"0y"\s<\s"0x12"})
J type Bug
K 3525462fffffffffffffffffffffffffffffffff
U zoltan3
Z 817b052ba5e4b22355304f007cb199ae