Skip to content
Tcl Source Code History Of Ticket 217881
Login

History Of Ticket 217881

Artifacts Associated With Ticket 217881

  1. Ticket change [e5da906b52] (rid 104197) by nobody on 2000-10-26 00:45:20:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2294 RFE
      Version: 8.1.1
      SubmitDate: '1999-06-28'
      LastModified: '1999-08-06'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 915
      OS: Linux-Red Hat
      OSVersion: Redhat 6.0
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-08-06'
      
      
      Name:
      
      Jean-Luc Fontaine
      
      
      
      Extensions:
      
      BLT 2.4i, Tktable 2.5, stooop 3.7, scwoop 2.6, tkpiechart 5.3, wcb 1.1
      
      
      
      CustomShell:
      
      minor modifications, see included patch
      
      
      
      ReproducibleScript:
      
      namespace a {
      
                                               variable {}
      
                                           }
      
          set a::(x) 0
      
          puts $a::(x)  ;# works with current tcl version
      
          namespace a {
      
            set (x) 0
      
            puts $(x) ;# should work as line above
      
          }
      
      
      
      ObservedBehavior:
      
      see included script
      
      
      
      DesiredBehavior:
      
      see included script
      
      
      
      Patch:
      
      *** generic/tclParse.c.origThu May 13 00:47:17 1999
      
      --- generic/tclParse.cSun Jun 27 12:05:36 1999
      
      ***************
      
      *** 1592,1597 ****
      
      --- 1592,1598 ----
      
            unsigned char c;
      
            int varIndex, offset;
      
            Tcl_UniChar ch;
      
      +     unsigned array;
      
        
      
            if (numBytes >= 0) {
      
        end = string + numBytes;
      
      ***************
      
      *** 1698,1709 ****
      
            }
      
            break;
      
        }
      
        tokenPtr->size = src - tokenPtr->start;
      
      ! if (tokenPtr->size == 0) {
      
            goto justADollarSign;
      
        }
      
        parsePtr->numTokens++;
      
      ! if ((src != end) && (*src == '(')) {
      
            /*
      
             * This is a reference to an array element.  Call
      
             * ParseTokens recursively to parse the element name,
      
      --- 1699,1711 ----
      
            }
      
            break;
      
        }
      
      + array = ((src != end) && (*src == '('));
      
        tokenPtr->size = src - tokenPtr->start;
      
      ! if ((tokenPtr->size == 0) && !array) {
      
            goto justADollarSign;
      
        }
      
        parsePtr->numTokens++;
      
      ! if (array) {
      
            /*
      
             * This is a reference to an array element.  Call
      
             * ParseTokens recursively to parse the element name,
      
      *** tests/encoding.test.origFri Apr  9 22:10:54 1999
      
      --- tests/encoding.testFri Apr  9 22:11:39 1999
      
      ***************
      
      *** 262,268 ****
      
        
      
        test encoding-13.1 {LoadEscapeTable} {
      
            set x [encoding convertto iso2022 ab\u4e4e\u68d9g]
      
      ! } "\x1b(Bab\x1b$@8C\x1b$(DD%\x1b(Bg"
      
        
      
        test encoding-14.1 {BinaryProc} {
      
            encoding convertto identity \x12\x34\x56\xff\x69
      
      --- 262,268 ----
      
        
      
        test encoding-13.1 {LoadEscapeTable} {
      
            set x [encoding convertto iso2022 ab\u4e4e\u68d9g]
      
      ! } "\x1b(Bab\x1b$@8C\x1b\$(DD%\x1b(Bg"
      
        
      
        test encoding-14.1 {BinaryProc} {
      
            encoding convertto identity \x12\x34\x56\xff\x69
      
      *** tests/parseOld.test.origFri Apr  9 22:11:53 1999
      
      --- tests/parseOld.testFri Apr  9 22:12:40 1999
      
      ***************
      
      *** 185,193 ****
      
            set b
      
        } {a$!}
      
        test parseOld-5.12 {array variable substitution} {
      
      !     set b a$()
      
      !     set b
      
      ! } {a$()}
      
        catch {unset a}
      
        test parseOld-5.13 {array variable substitution} {
      
            catch {unset a}
      
      --- 185,192 ----
      
            set b
      
        } {a$!}
      
        test parseOld-5.12 {array variable substitution} {
      
      !     list [catch {set b a$()} msg] $msg
      
      ! } {1 {can't read "()": no such variable}}
      
        catch {unset a}
      
        test parseOld-5.13 {array variable substitution} {
      
            catch {unset a}
      
      
      
      PatchFiles:
      
      generic/tclParse.c
      
          tests/encoding.test
      
          tests/parseOld.test
      
      
      
      
      
      Feature change request. 
      -- 06/29/1999 redman
      
    4. foundin initialized to: "final: 8.1.1"
    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: "69. Other"
    10. title initialized to: "epmty named array misbehavior"
    11. type initialized to: "Bug"
  2. Ticket change [f5763b7d35] (rid 130113) by welch on 2000-10-26 08:09:10:

    1. closedate changed to: "2000-10-26T01:09:10"
    2. closer changed to: "welch"
    3. priority changed to: "3 Low"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [44bea78f39] (rid 116757) by dgp on 2001-04-13 23:44:06:

    1. closedate changed to: "2001-04-13T16:44:06"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"