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

History Of Ticket 959831ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 959831ffffffffffffffffffffffffffffffffff

  1. Ticket change [c9cda2537e] (rid 122348) by msofer on 2004-05-25 01:44:07:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The manual pages for global and upvar commands do not
      explain the behaviour when the variable names contain
      namespace qualifiers.
      
      This is not so bad for upvar, as the behaviour is quite
      intuitive. Not the same for global ...
      
      One possibility is to explain global's behaviour, and
      show that it could be defined as
        
         proc global args {
             if {[info level] < 2} {
                 return
             }
             set cmdName [namespace tail [lindex [info level
      -1] 0]]
             if {[info procs $cmdName] eq {}} {
                 return 
             }
             set cmd [list upvar 0]
             foreach var $args {
                 lappend cmd ::$var [namespace tail $var]
             }
             uplevel 1 $cmd
             return
          }
      
    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: "msofer"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "global.n, upvar.n: qualified varNames?"
    11. type initialized to: "Bug"
  2. Ticket change [b1735a3072] (rid 98146) by msofer on 2004-05-25 21:11:58:

    1. closedate changed to: "2004-05-25T14:11:58"
    2. closer changed to: "msofer"
    3. resolution changed to: "Duplicate"
    4. status changed to: "Closed"
  3. Ticket change [5b6bc1b389] (rid 118321) by msofer on 2004-05-25 21:28:47:

    1. resolution changed to: "None"
    2. status changed to: "Open"
  4. Ticket change [9b6dc5a22e] (rid 111121) by msofer on 2004-05-25 23:58:43:

    1. assignee changed to: "jenglish"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Attached proposal for global.n; request comments
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [62a8ffc7f2] (rid 92442) by msofer on 2004-05-25 23:58:44:

    1. icomment:
      
      
      File Added - 88378: global.n
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Add attachment "global.n" [022a1e6a78] (rid 119599) by msofer on 2004-05-25 23:58:44.

  7. Ticket change [c3af9d205c] (rid 111707) by jenglish on 2004-05-26 01:29:41:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      New text looks good, though I'd suggest leaving out the part
      about "global can be defined in terms of other builtin
      commands as: [...]".  The Tcl equivalent doesn't make things
      any clearer, since to understand it you first have to
      understand all the details of [info level], [namespace
      tail], [upvar], and [uplevel].  (Plus, I'm not sure it's
      even correct).
      
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  8. Ticket change [d5a37a9a38] (rid 123659) by msofer on 2004-05-26 03:16:37:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      global.n fixed; upvar.n not yet ...
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "3 Low"
    6. username: "msofer"
  9. Ticket change [588c610c45] (rid 117826) by msofer on 2005-08-28 08:38:57:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Moved the [upvar] issue to Bug #1274918, closed the ticket
      and changed the summary accordingly
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
    6. title changed to: "doc: global and qualified varNames?"
    7. username: "msofer"
  10. Ticket change [06221cd3b7] (rid 89168) by msofer on 2005-08-28 08:38:58:

    1. closedate changed to: "2005-08-28T01:38:58"
    2. closer changed to: "msofer"