Skip to content
Tcl Source Code History Of Ticket 736729ffffffffff
Login

History Of Ticket 736729ffffffffff

Artifacts Associated With Ticket 736729ffffffffff

  1. Ticket change [9f7ca21269] (rid 96650) by msofer on 2003-05-12 22:48:05:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Name resolution is slightly broken in 8.4.
      
      % set x 1
      1
      % unset x
      % namespace eval test set x 0
      0
      % set x
      0
      
      Note that the temporary fix of [Bug 735335] solves this
      issue - for 8.4.3 and in HEAD: the result is as it
      should be:
        can't read "x": no such variable
      
      
      
    4. foundin initialized to: "obsolete: 8.4.2"
    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: "variable name resolution broken"
    11. type initialized to: "Bug"
  2. Ticket change [7e9bd8d1ed] (rid 97444) by msofer on 2003-05-13 06:06:44:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      I have not managed to devise a test for this yet; the error
      seems to depend on some subtle interplay with the literal
      mechanism.  It is triggered at the tclsh prompt, but
      apparently not in a sourced file (pure string evaluation) 
      or a proc body (pure compilation). 
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [35ee71e313] (rid 107030) by dgp on 2003-05-14 21:12:21:

    1. assignee changed to: "dgp"
  4. Ticket change [c31a1e4c8f] (rid 111597) by dgp on 2003-06-28 02:15:27:

    1. assignee changed to: "msofer"
  5. Ticket change [8321a13e9f] (rid 117343) by msofer on 2004-03-27 11:10:58:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Weird stuff - something to do with literals? If we replace
      the variable name 'x' by 'y', there is no bug!!!
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [138df82476] (rid 124239) by msofer on 2004-05-22 10:43:16:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Bug 735335 isnow fixed, but this one still lives ...
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [d0eb7b4919] (rid 113266) by msofer on 2004-05-22 16:36:13:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Thebug is not in the obj type, but rather in the lookup
      mechanism. The bug is still present in HEAD with the
      temporary fix; a script that exposes it is
        % namespace eval a upvar x q
        % namespace eval b set x 0
        0
        % set x
        0
      
      What is happening in the original script is:
        - x is a shared literal (created by init.tcl)
        - 'set x 1; unset x' shimmers x to tclNsVarNameType
        - the shared literal keeps an (undefined) variable x in
      the global hashtable
        - the lookup mechanism finds the variable in the
      hashtable, and uses it
      In this new version, x is kept in the hashtable by upvar
      instead.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Ticket change [83a5a356be] (rid 117419) by msofer on 2004-05-22 16:42:51:

    1. foundin changed to: "obsolete: 8.5a1"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      The bug is present since bog knows when - at least 8.3.4
      shows the buggy behaviour in the upvar version  below ...
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "8"
    6. username: "msofer"
  9. Ticket change [9a3a986599] (rid 110917) by msofer on 2004-05-22 22:29:30:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      More fun with zombie variables - ie, those that have an
      entry in the hashtable but (flags & VAR_UNDEFINED) is true:
      
        % namespace eval a {}
        % upvar 0 a::q x
        % namespace eval a {set x 1; set q}
        1
        % set x
        1
        % set a::x
        can't read "a::x": no such variable
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [dff52e6b94] (rid 115111) by msofer on 2004-05-24 03:11:07:

    1. closedate changed to: "2004-05-23T20:11:07"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Closing this bug ticket - the bug introduced in tcl8.4 is
      fixed, 8.4 and 8.5 behave now the same as all previous 8.x
      (AFAICT).
      
      Opening [Bug 959052] for the remaining issues.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"
  11. Ticket change [6b93d2a213] (rid 128352) by msofer on 2004-05-26 02:48:46:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Cached ns varnames still interfere with name resolution: A
      cached varName may keep a variable's name in the namespace's
      hash table, which is the resolver's criterion for existence
      (see test namespace-17.10).
      
      This caching now disabled, will have to wait until the
      variable name resolution is fixed.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "Postponed"
    5. username: "msofer"