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

History Of Ticket 721721ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 721721ffffffffffffffffffffffffffffffffff

  1. Ticket change [6966287c20] (rid 103243) by nobody on 2003-04-15 10:24:14:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      NB. this is not a true bug report....
      
      The current implementation of [uplevel cmd]
      (Tcl_UplevelObjCmd in tclProc.c) checks
      "cmd" to see if it is a level number, even though
      the docs indicate uplevel's syntax to be:
       uplevel ?level? cmd ?arg ...?
      ie. if there is only one argument it has to be the cmd.
      ie. it doesn't/shouldn't be checked to see if it is
      a level number
      
      I believe that this causes unnecesary shimmering
      of 'cmd' as it is converted to a string to check to see
      if it is a number.
      
      
      
    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: "nobody"
    9. subsystem initialized to: "22. [proc] and [uplevel]"
    10. title initialized to: "[uplevel cmd] has unnecesary string conversion"
    11. type initialized to: "Bug"
  2. Ticket change [bd163b6578] (rid 101849) by nobody on 2003-04-15 18:01:19:

    1. icomment:
      Logged In: NO 
      
      Also consider the following:
      
      % proc 22 {} {puts Hi!}
      % proc Y {} { uplevel 22 }
      % Y
      bad level "22"
      % uplevel
      wrong # args: should be "uplevel ?level? command ?arg ...?"
      % info tclversion
      8.4
      
      Now *this* is a bug.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [fb90d8719c] (rid 92086) by msofer on 2003-04-15 19:42:15:

    1. closedate changed to: "2003-04-15T12:42:15"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      That is documented behaviour, not a bug. The [uplevel] man
      page says: "Level cannot be defaulted if the first command
      argument starts with a digit or #."
      
      Re shimmering: Tcl_Objs can have two simultaneous
      representations: string and internal; computing the string
      rep does not destroy the internal rep and does not really
      qualify as "shimmering". Also, by their genesis, Tcl_Objs
      representing commands always have a valid string rep.
      
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "msofer"