Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 03233c5b8bd77768fb578f9ba3baee5f2d1de177
Ticket: 1016167fffffffffffffffffffffffffffffffff
[after] overwrites its imports
User & Date: dgp on 2004-08-25 17:27:34
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % namespace export after
    % namespace eval foo namespace import ::after
    % namespace origin foo::after
    ::after
    % foo::after 1
    % namespace origin foo::after
    ::foo::after
    
    Tcl_AfterObjCmd incorrectly assumes
    that objv[0] holds the name of the
    built-in after command itself, and uses
    Tcl_SetCommandInfo to overwrite "itself"
    
    With [namespace import]ed commands,
    though, objv[0] is the [namespace import]-created
    command, not the original.  The overwrite
    causes it to become an alternative
    implementation of [after], rather than an
    imported link to [after], as the different
    [namespace origin] results demonstrate.
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "03. Timer Events"
  10. title changed to: "[after] overwrites its imports"
  11. type changed to: "Bug"