<i>Slow detection of illegal expr argument</i> status still Open with 3 other changes
by
.
D 2024-07-07T14:10:38.304
J icomment I\sthink\s[2290847d23a494e4|this]\sis\show\sit\sshould\sbe:\r\n\r\nIf\sthe\sobj\sbeing\shandled\sby\s"expr"\scan\sbe\srepresented\sas\sa\slist\sand\shas\smore\sthan\s1\selement\s(so\sa\sdict\sas\swell),\sit\snow\sgives\sa\sslightly\sdifferent\serror-message:\r\n\r\n<pre>\r\n%\sset\sx\s[lseq\s1\s11111111111111];set\sy\s5\r\n5\r\n%\sexpr\s{$x+$y}\r\ncan't\suse\sa\slist\sas\soperand\sof\s"+"\r\n</pre>\r\n\r\nA\sside-effect\sof\sthis\sis\sthat\sTcl_GetNumberFromObj()\snow\stries\sto\r\nconvert\sthe\sobject\sto\sa\slist,\sif\sit\sisn't\salready\sone\sof\sthe\r\nother\sknown\stypes\s(like\sdict,\slseq,\sor\sindex).\sThat's\svery\suseful\sin\r\nfurther\serror-handling,\ssince\sthe\stypePtr\sor\slengthProc\sthen\r\ncan\sbe\sinspected\sfor\sthis\scase\swithout\strying\sto\sdo\smore\sparsing.\r\n\r\nIt\smight\salso\sbe\svery\suseful\sfor\sthe\simplementation\sof\sa\sfuture\r\nTcl_GetValueFromObj()\s....
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 0439e1e1a37ff9c634280bc2490981f3e3c7e985
U jan.nijtmans
Z ed2ea560759905f86fbb1230e996beda