Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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.
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to:
    [uplevel $list], [uplevel 1 $list] and generation of string representations
    
  16. type changed to: "Bug"