Skip to content
Tcl Source Code Artifact [1484e74dd0]
Login

Artifact [1484e74dd0]

Artifact 1484e74dd01010577a3a1d0ceb69670ae1fea21b:

Ticket change [1484e74dd0] - Ticket [71c0878b712d056d|71c0878b71] <i>Strange results when second argument to [incr] is a list</i> status still Open with 3 other changes by avl42 on 2017-03-05 14:35:29.
D 2017-03-05T14:35:29.953
J icomment Maybe\sthat's\sobvious,\sanyway,\sbut\sthe\snew\scode\sto\sdetect\sdefinitely-not-numbers\sonly\sreturns\sTCL_ERROR\sbut\sdoesn't\sset\san\serror\sresult\sstring.\sThe\sconsequence\sis\s\sthat\seventually\sa\spreviously\ssuppressed\serror\sresurfaces,\sor\sjust\san\sempty\sstring.\r\n\r\nFor\sfull\scorrectness,\swe\swould\sneed\sto\sensure\sthe\ssame\serror\smessage\son\sa\spure\slist/dict\sthan\son\sits\scanonical\sstring\srep.\sFortunately,\swe\sonly\sneed\sto\sdo\sthis,\sif\sthe\sinterp\sis\snon-NULL,\sso\sthe\sintended\sspeed-up\sfor\stryCvtToNumeric\sisn't\saffected,\sas\sit\salready\spasses\sNULL\sfor\sthe\sinterp.\r\n\r\nMy\ssuggested\sfix\swould\sbe\sto\schange\sline\s542\s("if\s(endPtrPtr\s...")\sto\s"if\s(interp==NULL\s&&\sendPtrPtr\s==\sNULL)\s...".\sIf\sthere\sis\san\sinterp,\swe\sneed\san\sauthentic\serror\sdiagnose,\sso\scan't\sshortcut.
J login avl42
J mimetype text/plain
K 71c0878b712d056d9c69dba6f72e0efce751e290
U avl42
Z 5441242c74740451f8f2ed9a6d64daf2