Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4dbf6d741a77363efd09c839d6f5f7c21c4dd364
Ticket: 446017ffffffffffffffffffffffffffffffffff
uplevel bug for rare case scenario
User & Date: msofer on 2001-07-31 06:32:45
Changes

  1. assignee changed to: "msofer"
  2. closedate changed to: "2001-07-30T23:32:45"
  3. closer changed to: "msofer"
  4. icomment:
    Logged In: YES 
    user_id=148712
    
    This is the behaviour documented in the man pages:
    "If level consists of # followed by a number then the number
    gives an
    absolute level number. If level is omitted then it defaults
    to 1. Level
    cannot be defaulted if the first command argument starts
    with a digit or
    #."
    
    For performance reasons you should try not to omit the level
    if you are
    passing a command assembled with [list] to [uplevel]: if you
    do,
    Tcl_UplevelObjCmd will get the string rep of the list,
    thereby defeating
    the "pure list optimisation".
    
    Note that (assuming 'cmd' does not start with a digit or #),
       uplevel cmd ?arg?
    is equivalent to
       uplevel 1 cmd ?arg?
    
    
    
  5. login: "msofer"
  6. mimetype: "text/plain"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"
  9. subsystem changed to: "45. Parsing and Eval"
  10. username: "msofer"