Overview
| Artifact ID: | b59dba9d46b912c6d151db54e687844870e4b046dc8773297c98bc5938591d1b |
|---|---|
| Ticket: | 4bbb308ab26fe4aea344f1c0f744ccbef3f0543f
trace causes generation of string representation of "commandPrefix" argument |
| User & Date: | pooryorick on 2018-04-28 13:42:26 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
When a pure list is passed as the <code>commandPrefix</code> argument, the string representation of that list is generated: <code><verbatim> proc p1 {list args} { puts [list in . p1 [::tcl::unsupported::representation $list]] } set list [list one two three] puts [list initial [::tcl::unsupported::representation $list]] set var1 {} trace add variable var1 read [list p1 $list] set list [list p1 one two three] set var1 </verbatim></code> Output: <verbatim> initial {value is a list with a refcount of 3, object pointer at 0x55f4052f7ad8, internal representation 0x55f4052db288:(nil), no string representation} in . p1 {value is a pure string with a refcount of 3, object pointer at 0x55f4051a8aa8, string representation "one two three"} </verbatim> - is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- private_contact changed to: "cb5bb6e27c11439b3d652a7ea7b921f6ea291750"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
trace causes generates of string reprepresentatin of "commandPrefix" argument
- type changed to: "Bug"