Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be3d1cdb926572a0c88f42bdfcb9b5a6ecedd962
Ticket: 154f0982f2f701a1c3f964c0a3d54737361a3630
Tcl_NewObjectInstance() silently ignores existing namespace argument
User & Date: dgp on 2015-05-27 12:52:32
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
        Tcl_Object 
        Tcl_NewObjectInstance(interp, class, name, nsName, objc, objv, skip) 
    
    ...
    
    const char *nsName (in)
        The name of the namespace to create for the object's private use, or NULL if a new unused name is to be automatically selected. 
    
    ...
    
    If the nsName value passed in names an existing namespace, T_NOI() does
    not raise an error, nor does it use the named namespace.  It silently
    falls back to behaving as if nsName==NULL was passed in, and generates
    a new namespace.
    
    This should at least be made more clear in the documentation.
    
    Itcl 4 suffers from this.  See http://core.tcl.tk/itcl/tktview?name=f3a2e7407c
    
  5. foundin changed to: "trunk"
  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: "35. TclOO Package"
  14. title changed to:
    Tcl_NewObjectInstance() silently ignores existing namespace argument
    
  15. type changed to: "Bug"