Skip to content
Tcl Source Code History Of Ticket 3185009
Login

History Of Ticket 3185009

Artifacts Associated With Ticket 3185009

  1. Ticket change [586544ada1] (rid 117796) by danckaert on 2011-02-17 16:52:44:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There is a problem when configuring object variables using objdefine->variable, and unsetting such a variable:
      
      oo::object create p
      oo::objdefine p variable x
      oo::objdefine p method set {v} {set x $v}
      oo::objdefine p method unset {} {unset x}
      oo::objdefine p method exists {} {info exists x}
      oo::objdefine p method get {} {return $x}
      
      p exists   ; # returns 0  (ok)
      p set 7
      p exists   ; # returns 1  (ok)
      p get      ; # returns 7  (ok)
      p unset
      p exists   ; # returns 1  (wrong)
      p get      ; # Segmentation fault
      
      The above is when running interactively. In non-interactive mode, it already aborts on the second "info exists", with:
      malformed bucket chain in Tcl_DeleteHashEntry
      Abort
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    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: "danckaert"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "TclOO variable unset problem"
    12. type initialized to: "Bug"
  2. Ticket change [847f617689] (rid 117559) by dkf on 2011-02-18 06:00:30:

    1. icomment:
      Reproduced. It seems to be something to do with the unset and cleaning up a stack frame. Maybe also with the variable resolver. :-(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  3. Ticket change [a2eef80c1e] (rid 109975) by dkf on 2011-03-05 08:32:29:

    1. icomment:
      Fixed on HEAD. Needed to maintain a reference to a namespace variable from the TclOO resolver record, and not just a pointer. Keeping open for port to TclOO-as-package.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [fa014911a9] (rid 91796) by dkf on 2011-03-11 18:48:36:

    1. icomment:
      Fixed in TclOO, but not yet pushed to a public fossil repo. (Need one set up on core.tcl.tk...)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [304b61db0b] (rid 93221) by dkf on 2011-09-22 17:48:51:

    1. closedate changed to: "2011-09-22T10:48:51"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Confirming that all the fixes are where they need to be; just forgot to close this issue.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"