Overview
| Artifact ID: | 822d6eec9c98d3830dd8f3de03cf6de48a20958d1f3e99c3cac10a6c4483a190 |
|---|---|
| Ticket: | d8ae5d5f4c1e248b715b2a2d90ed746dbfb5f2ed
Documentation of dict filter script: script results, not returns a boolean |
| User & Date: | oehhar on 2020-11-02 14:18:38 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The description of dict filter script includes: "and then evaluating the given script which should return a boolean value." IMHO, the script should result in a boolean value, not return one. For me, "return" is the return command, not a result. I tried: <verbatim> % dict filter {a 1 b 2} script {k v} {return 1} 1 % dict filter {a 1 b 2} script {k v} {expr 1} a 1 b 2 </verbatim> Perhaps I am dump, but the description lead me to this error. References below. Thank you, Harald See [http://www.tcl.tk/man/tcl8.6/TclCmd/dict.htm#M10] : dict filter dictionaryValue script {keyVariable valueVariable} script The script rule tests for matching by assigning the key to the keyVariable and the value to the valueVariable, and then evaluating the given script which should return a boolean value. - foundin changed to: "8.6.10"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "15. Dict Object"
- title changed to:
Documentation of dict filter script: script results, not returns a boolean
- type changed to: "Bug"