Skip to content
Tcl Source Code History Of Ticket 2039178fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2039178fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2039178fffffffffffffffffffffffffffffffff

  1. Ticket change [a27e8ac719] (rid 109907) by dgp on 2008-08-05 18:40:31:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Command delete and rename traces created
      by Tcl_CreateTrace (or the script interface
      [trace add command]) do not set the
      flag bit TCL_INTERP_DESTROYED when 
      calling Tcl_CommandTraceProc callbacks.
      Near as I can tell browsing the cvs logs,
      they never have.
      
      This is contrary to the documentation
      for Tcl_CreateTrace.  The docs have always
      claimed this flag would be set.
      
      It appears this problem arises mostly
      because the docs for Tcl_CreateTrace
      were not written from the ground up, but
      were written via copy/paste/fail-to-modify
      applied to TraceVar.3.
      
      The TCL_INTERP_DESTROYED flag has always
      been a boneheaded interface, even in
      variable traces.  There's no sensible
      reason a trace callback routine needs
      special notification about the interpreter
      being in a state of getting deleted, when
      the Tcl_InterpDeleted() routine is right
      there to discover that fact. Furthermore,
      for most of its life the setting of the
      TCL_INTERP_DESTROYED flag has been broken.
      See Feature Request 1714505 and Bug 1706140.
      
      I'm in no mood to add something stupid to
      command traces, just because the originators
      of them couldn't be bothered to write correct
      docs in the first place.  My intended fix
      is to change the docs to match what the code
      does.
      
      This would all be harmless stupidity, except
      that apparently Donal Fellows made the mistake
      of believing the docs when writing TclOO,
      which assumes the TCL_INTERP_DESTROYED flag
      is meaningful in a command delete trace.
      
    4. foundin initialized to: "obsolete: 8.6a1"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "46. Traces"
    11. title initialized to:
      Tcl_CreateTrace traces don't set TCL_INTERP_DESTROYED
      
    12. type initialized to: "Bug"
  2. Ticket change [bf7491d09a] (rid 102254) by dgp on 2008-08-07 04:24:01:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Fixed the attempted use of this
      feature in TclOO.c.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dgp"
  3. Ticket change [a0a8195e4e] (rid 96856) by dgp on 2013-01-08 01:41:27:

    1. priority changed to: "9 Immediate"
  4. Ticket change [bb69f05245] (rid 129477) by dgp on 2013-04-10 23:28:19:

    1. priority changed to: "5 Medium"
  5. Ticket change [4df822c238] (rid 140206) by dgp on 2014-10-09 14:53:10:

    1. closedate changed to: "2456940.12026122"
    2. closer changed to: "dgp"
    3. comment changed to:
      Command delete and rename traces created
      by Tcl_CreateTrace (or the script interface
      [trace add command]) do not set the
      flag bit TCL_INTERP_DESTROYED when 
      calling Tcl_CommandTraceProc callbacks.
      Near as I can tell browsing the cvs logs,
      they never have.
      
      This is contrary to the documentation
      for Tcl_CreateTrace.  The docs have always
      claimed this flag would be set.
      
      It appears this problem arises mostly
      because the docs for Tcl_CreateTrace
      were not written from the ground up, but
      were written via copy/paste/fail-to-modify
      applied to TraceVar.3.
      
      The TCL_INTERP_DESTROYED flag has always
      been a boneheaded interface, even in
      variable traces.  There's no sensible
      reason a trace callback routine needs
      special notification about the interpreter
      being in a state of getting deleted, when
      the Tcl_InterpDeleted() routine is right
      there to discover that fact. Furthermore,
      for most of its life the setting of the
      TCL_INTERP_DESTROYED flag has been broken.
      See Feature Request 1714505 and Bug 1706140.
      
      I'm in no mood to add something stupid to
      command traces, just because the originators
      of them couldn't be bothered to write correct
      docs in the first place.  My intended fix
      is to change the docs to match what the code
      does.
      
      This would all be harmless stupidity, except
      that apparently Donal Fellows made the mistake
      of believing the docs when writing TclOO,
      which assumes the TCL_INTERP_DESTROYED flag
      is meaningful in a command delete trace.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. severity changed to: "Minor"
    8. status changed to: "Closed"