Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da14460f9ff45632096cb56b5a3378f198fb38c0
Ticket: 1017022fffffffffffffffffffffffffffffffff
imported ensembles are not recognized
User & Date: dgp on 2004-08-26 16:49:39
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % namespace eval foo {
        namespace ensemble create -command foo -subcommands bar
        namespace export foo
        proc bar args {puts bar}
    }
    % namespace import foo::foo     
    % foo bar
    bar
    % namespace ensemble exists foo
    0
    % namespace ensemble exists foo::foo
    1
    
    So [namespace ensemble exists]
    recognizes that [foo::foo] is an
    ensemble, but it insists that
    [foo] is not, even though they are
    two names of the same command.
    
    Contrast this with [info proc]:
    
    namespace eval foo {
        namespace export bar
        proc bar {} {}
    }
    % namespace import foo::bar
    % info procs bar
    bar
    % info procs foo::bar
    ::foo::bar
    
    So [proc]-iness is a property that
    both original commands and
    imported command share, but
    [ensemble]-ness is a property that
    imported commands lack, while
    original commands have.  This
    seems inconsistent.
    
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  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: "21. [namespace]"
  10. title changed to: "imported ensembles are not recognized"
  11. type changed to: "Bug"