Skip to content
Tcl Source Code History Of Ticket 446017ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 446017ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 446017ffffffffffffffffffffffffffffffffff

  1. Ticket change [f5c7c5b573] (rid 130172) by hemanglavana on 2001-07-30 17:26:21:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When only one argument is passed to uplevel command and if the first letter is a # sign, then tcl 
      reports an error:
      
      godel> tclsh
      %info patch
      8.3.3
      % proc #123 {args} {puts args=$args}
      % uplevel [list #123 hello world]
      expected integer but got "123 hello world"
      % uplevel 0 [list #123 hello world]
      args=hello world
      % exit
      
      The current workaround is to explicitly specify the _level_ argment to uplevel command.
      
      Hemang.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hemanglavana"
    9. subsystem initialized to: "None"
    10. title initialized to: "uplevel bug for rare case scenario"
    11. type initialized to: "Bug"
  2. Ticket change [4dbf6d741a] (rid 127102) by msofer on 2001-07-31 06:32:45:

    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"