Skip to content
Tcl Source Code History Of Ticket 1080627fffffffff
Login

History Of Ticket 1080627fffffffff

Artifacts Associated With Ticket 1080627fffffffff

  1. Ticket change [dc1f5007a0] (rid 108084) by nobody on 2004-12-07 13:48:29:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      See comp.lang.tcl 2004-12-06 "very weird effect!".
      ---------------------------
      proc myapp {bn} { upvar 1 $bn b; append b xx }
      set env(XY) aa
      
      myapp env(XY)
      #puts "$env(XY)"
      #append env(XY) yy
      
      puts "$env(XY)"
      ----------------------------
      As is, it writes just "aa"
      If you only uncomment the append-line
        then it writes "aaxxyy"
      If you then also uncomment the puts-line between
        myapp and append, then the "xx" is lost,
        and the script will just write "aa" and "aayy"
      - Very, weird, indeed.
      -----------------------------
      Tested on:
           WindowsXP + Tcl8.4.8
      and by Andreas Leitgeb on:
           tcl8.4.7 and with CVS-version 8.5 on linux
      
    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: "None"
    10. title initialized to: "unpredictable env+upvar"
    11. type initialized to: "Bug"
  2. Ticket change [804914eef5] (rid 116847) by florim on 2004-12-07 21:39:34:

    1. icomment:
      Logged In: YES 
      user_id=1173505
      
      submitted by: florim
      
      
    2. login: "florim"
    3. mimetype: "text/plain"
    4. username: "florim"
  3. Ticket change [45b85479f0] (rid 99395) by dkf on 2004-12-07 22:24:04:

    1. assignee changed to: "hobbs"
    2. foundin changed to: "obsolete: 8.4.8"
    3. subsystem changed to: "08. Environment Variables"
  4. Ticket change [3e78d6eabb] (rid 121275) by hobbs on 2005-10-05 12:36:29:

    1. closedate changed to: "2005-10-05T05:36:29"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      dup of 219372
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "hobbs"