Skip to content
Tcl Source Code Artifact [379a054346]
Login

Artifact [379a054346]

Artifact 379a0543469f01667881dedbb5ba7d3734223bda:

Ticket change [379a054346] - New ticket [d0f7ba56f0e8f93b|d0f7ba56f0] <i>INST_EQ first-argument NaN shortcut is too aggressive</i>. by aspect on 2017-01-28 03:12:33.
D 2017-01-28T03:12:33.404
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment In\sthe\sTIP#451\sdiscussion\son\stcl-core\sit\swas\sshown\sthat\sNaN\sis\s!=\sto\sall\sstrings,\swhen\sprovided\sas\sthe\sfirst\sargument\sto\s==/!=/>/</>=/<=.\r\n\r\nThe\scause\sseems\sto\sbe\sthat\scase\sINST_EQ\sin\stclExecute.c\sshortcuts\stoo\squickly\swhen\stype1\s==\sTCL_NUMBER_NAN.\s\sIt\sshould\scheck\sthat\svalue2Ptr\scan\sbe\scoerced\sto\sa\snumber\sfirst.\r\n\r\n%\sset\sx\s"nan"\r\n%\sset\sy\s"gran"\r\n%\sexpr\s{$x\s>\s$y}\s;#\sexpect\s1\r\n0\r\n%\sexpr\s{$x\s<\s$y}\s;#\sexpect\s0\r\n0\r\n%\sexpr\s{$y\s>\s$x}\s;#\sexpect\s0\r\n0\r\n%\sexpr\s{$y\s<\s$x}\s;#\sexpect\s1\r\n1\r\n\r\nThis\sis\scontrary\sto\sexpr(n)\s"when\sall\sarguments\sto\sthe\soperator\sallow\snumeric\sinterpretations".\r\n\r\nFixing\sthis\sshould\sprobably\sconsider\sthe\s[pyk-emptystring]\sbranch,\swhich\stouches\sthe\ssame\splace\sto\sspeed\sup\sa\scommon\scase\sof\scomparison\swith\s"".
J foundin 8.5+
J is_private 0
J login aspect
J priority 5\sMedium
J resolution None
J severity Important
J status Open
J submitter aspect
J subsystem 48.\sNumber\sHandling
J title INST_EQ\sfirst-argument\sNaN\sshortcut\sis\stoo\saggressive
J type Bug
K d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a
U aspect
Z 58543e1128b679d918e02616652059e5