Skip to content
Tcl Source Code History Of Ticket 217799
Login

History Of Ticket 217799

Artifacts Associated With Ticket 217799

  1. Ticket change [0c548ff0ba] (rid 114158) by nobody on 2000-10-26 00:43:50:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 987 Bug
      Version: 8.1b1
      SubmitDate: '1998-12-17'
      LastModified: '1999-01-11'
      Severity: LOW
      Status: Closed
      Submitter: pat
      ChangedBy: pat
      OS: Other
      OSVersion: Redhat 5.2 on Intel
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '1999-01-11'
      
      
      Name:
      
      Jean-Luc Fontaine
      
      
      
      Extensions:
      
      BLT 2.4, tkTable 2.4, stooop 3.7, scwoop 2.6, tkpiechart 5.2.1
      
      
      
      CustomShell:
      
      just applied the patch above
      
      
      
      DesiredBehavior:
      
      allowing empty name array to work as expected:
      
      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
      
      }
      
      
      
      
      
      
      
      
      
      Patch:
      
      *** generic/tclParse.c.orig     Sat Dec 12 17:06:22 1998
      
      --- generic/tclParse.c  Sat Dec 12 17:08:40 1998
      
      ***************
      
      *** 1545,1550 ****
      
      --- 1545,1551 ----
      
            unsigned char c;
      
            int varIndex, offset;
      
            Tcl_UniChar ch;
      
      +     unsigned array;
      
        
      
            if (numBytes >= 0) {
      
              end = string + numBytes;
      
      ***************
      
      *** 1649,1660 ****
      
                  }
      
                  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,
      
      --- 1650,1662 ----
      
                  }
      
                  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.orig    Sat Dec 12 21:01:55 1998
      
      --- tests/encoding.test Sat Dec 12 21:03:42 1998
      
      ***************
      
      *** 260,266 ****
      
        
      
        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
      
      --- 260,266 ----
      
        
      
        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.orig    Sat Dec 12 21:06:47 1998
      
      --- tests/parseOld.test Sat Dec 12 21:13:28 1998
      
      ***************
      
      *** 182,190 ****
      
            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}
      
      --- 182,189 ----
      
            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
      
      
      
      
      
      
      
      
      
      emparrnam.test corresponding test suite was sent to Brent Welch
      
      01/11/1999 13:09 - pat - this is a duplicate of record 977.
      
    4. foundin initialized to: "obsolete: 8.1b1"
    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: "empty name array syntax improvement"
    11. type initialized to: "Bug"
  2. Ticket change [ea5be90b32] (rid 103363) by welch on 2000-10-26 07:49:18:

    1. closedate changed to: "2000-10-26T00:49:18"
    2. closer changed to: "welch"
    3. priority changed to: "1 Zero"
    4. resolution changed to: "Duplicate"
    5. status changed to: "Closed"
  3. Ticket change [e93265cbf9] (rid 104773) by dgp on 2001-04-13 22:55:38:

    1. closedate changed to: "2001-04-13T15:55:38"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"