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

History Of Ticket 3603695fffffffff

Artifacts Associated With Ticket 3603695fffffffff

  1. Ticket change [30931ce69a] (rid 93280) by taylor_venable on 2013-02-07 12:04:39:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When using oo::object's varname method on an object within the context of another object's method, [$other varname x] returns as if invoked as [my varname x]. Changing the context (e.g. by using [uplevel #0 $other varname x]) returns the correct result. Example code and output attached.
      
      Tcl Version: 8.6.0
      TclOO Version: 1.0
      OS Platform & Version: Linux 3.5.7
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "taylor_venable"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to:
      TclOO: varnames incorrect when used from other object method
      
    12. type initialized to: "Bug"
  2. Add attachment "test.tcl" [3b55280ed6] (rid 112720) by taylor_venable on 2013-02-07 19:04:40.

  3. Ticket change [12e96e69d1] (rid 124129) by taylor_venable on 2013-02-07 19:04:40:

    1. icomment:
      
      
      File Added - 460258: test.tcl
      
      
      
    2. login: "taylor_venable"
    3. mimetype: "text/plain"
    4. username: "taylor_venable"
  4. Ticket change [c4ae95523c] (rid 111882) by dkf on 2013-02-08 21:00:58:

    1. icomment:
      The 'variable' declaration is critical to the problem, as the test case I'm working on (see below) succeeds without it and fails with it. Very strange!
      
      test oo-19.3 {OO: varname method and variable decl: Bug 3603695} -setup {
          oo::class create testClass {
      variable foo
      export varname
      constructor {} {
          variable foo x
      }
      method bar {obj} {
          my varname foo
          $obj varname foo
      }
          }
      } -body {
          testClass create A
          testClass create B
          lsearch [list [A varname foo] [B varname foo]] [B bar A]
      } -cleanup {
          testClass destroy
      } -result 0
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dkf"
  5. Ticket change [b2fde8c735] (rid 98439) by dkf on 2013-02-09 19:32:28:

    1. closedate changed to: "2013-02-09T12:32:28"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed for the next release of Tcl 8.6; will also apply to TclOO package for its future releases.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"