<i>Expr documentation bug (expr {"0y" < "0x12"})</i>.
by
.
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