Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a41279dae2f52083d676992e415bf2cc3da3a700
Ticket: a16752c25254181ce5edef8cdc29b039d3e46885
No Tcl_CmdDeleteProc call when string command replaced by obj command
User & Date: dgp on 2013-08-14 16:29:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    This has been broken as long as Tcl source
    code history goes back.  When a command created
    by Tcl_CreateCommand is overwritten by a new command
    created by Tcl_CreateObjCommand, its deletion callback
    is never called.  There is special explicit code in
    place to make this mistake.  "What were they thinking?"
    
    Here's the demo, using testing commands already available:
    
    % testdel {} foo {puts bar}
    % proc foo args {}
    %
    
  5. foundin changed to: "ALL"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "45. Parsing and Eval"
  14. title changed to:
    No Tcl_CmdDeleteProc call when string command replaced by obj command
    
  15. type changed to: "Bug"