<i>Documentation of dict filter script: script results, not returns a boolean</i>.
by
.
D 2020-11-02T14:18:38.253
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\sdescription\sof\sdict\sfilter\sscript\sincludes:\r\n"and\sthen\sevaluating\sthe\sgiven\sscript\swhich\sshould\sreturn\sa\sboolean\svalue."\r\n\r\nIMHO,\sthe\sscript\sshould\sresult\sin\sa\sboolean\svalue,\snot\sreturn\sone.\r\nFor\sme,\s"return"\sis\sthe\sreturn\scommand,\snot\sa\sresult.\r\n\r\nI\stried:\r\n<verbatim>\r\n%\sdict\sfilter\s{a\s1\sb\s2}\sscript\s{k\sv}\s{return\s1}\r\n1\r\n%\sdict\sfilter\s{a\s1\sb\s2}\sscript\s{k\sv}\s{expr\s1}\r\na\s1\sb\s2\r\n</verbatim>\r\n\r\nPerhaps\sI\sam\sdump,\sbut\sthe\sdescription\slead\sme\sto\sthis\serror.\r\n\r\nReferences\sbelow.\r\n\r\nThank\syou,\r\nHarald\r\n\r\nSee\s[http://www.tcl.tk/man/tcl8.6/TclCmd/dict.htm#M10]\s:\r\n\r\ndict\sfilter\sdictionaryValue\sscript\s{keyVariable\svalueVariable}\sscript\r\n\r\nThe\sscript\srule\stests\sfor\smatching\sby\sassigning\sthe\skey\sto\sthe\skeyVariable\sand\sthe\svalue\sto\sthe\svalueVariable,\sand\sthen\sevaluating\sthe\sgiven\sscript\swhich\sshould\sreturn\sa\sboolean\svalue.
J foundin 8.6.10
J is_private 0
J login oehhar
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter oehhar
J subsystem 15.\sDict\sObject
J title Documentation\sof\sdict\sfilter\sscript:\sscript\sresults,\snot\sreturns\sa\sboolean
J type Bug
K d8ae5d5f4c1e248b715b2a2d90ed746dbfb5f2ed
U oehhar
Z c7083c9e01b2bb20a550019a71f68465