Overview
| Artifact ID: | 88ae61c1179e0e453ca7fe01fb363002582a5cce |
|---|---|
| Ticket: | b9ecf3ce9801c480620f83b34110f808bd11affb
[uplevel $list], [uplevel 1 $list] and generation of string representations |
| User & Date: | pooryorick on 2016-05-05 04:11:20 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The following script causes a string representation to be generated for each item in the list passed to <code>uplevel</code>, but if a level specifier is added as the first argument to <code>uplevel</code>, string representations aren't generated: <code><verbatim> apply {{} { uplevel [list apply {{args} { foreach arg $args {puts [::tcl::unsupported::representation $arg]} }} {*}[list [expr 1] [expr 2]]] }} </verbatim></code> The generation of string representations for items in such a list could have a significant unexpected performance/memory impact. Ticket 1017884 is related, but this one-argument case could probably be fixed without the backward-incompatible change suggested in that ticket, since the single argument can be assumed to be the script to be evaluated. - foundin changed to: "8.6.5"
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "18. Commands M-Z"
- title changed to:
[uplevel $list], [uplevel 1 $list] and generation of string representations
- type changed to: "Bug"