Artifacts Associated With Ticket 736729ffffffffff
Ticket change [9f7ca21269] (rid 96650) by msofer on 2003-05-12 22:48:05:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "obsolete: 8.4.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "07. Variables"
- title initialized to: "variable name resolution broken"
- type initialized to: "Bug"
Ticket change [7e9bd8d1ed] (rid 97444) by msofer on 2003-05-13 06:06:44:
- 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).
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [35ee71e313] (rid 107030) by dgp on 2003-05-14 21:12:21:
- assignee changed to: "dgp"
Ticket change [c31a1e4c8f] (rid 111597) by dgp on 2003-06-28 02:15:27:
- assignee changed to: "msofer"
Ticket change [8321a13e9f] (rid 117343) by msofer on 2004-03-27 11:10:58:
- 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!!!
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [138df82476] (rid 124239) by msofer on 2004-05-22 10:43:16:
- icomment:
Logged In: YES user_id=148712 Bug 735335 isnow fixed, but this one still lives ...
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [d0eb7b4919] (rid 113266) by msofer on 2004-05-22 16:36:13:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [83a5a356be] (rid 117419) by msofer on 2004-05-22 16:42:51:
- foundin changed to: "obsolete: 8.5a1"
- 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 ...
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "msofer"
Ticket change [9a3a986599] (rid 110917) by msofer on 2004-05-22 22:29:30:
- 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 - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [dff52e6b94] (rid 115111) by msofer on 2004-05-24 03:11:07:
- closedate changed to: "2004-05-23T20:11:07"
- closer changed to: "msofer"
- 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.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"
Ticket change [6b93d2a213] (rid 128352) by msofer on 2004-05-26 02:48:46:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Postponed"
- username: "msofer"
- icomment: