Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d1e300ddeebe282b4f119a8aca212dee597ca5f
Ticket: 1578235fffffffffffffffffffffffffffffffff
kill [namespace inscope]
User & Date: msofer on 2006-10-16 14:45:38
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    According to the docs "This command is not expected to
    be used directly by programmers; calls to it are
    generated implicitly when applications use [namespace
    code] commands to create callback scripts ..."
    
    With 8.5 features it is possible to implement
    [namespace code] directly (up-to inclusion in the
    namespace ensemble) as
    
      proc nscode script {
          set ns [uplevel 1 [list namespace current]]
          set body "$script \{expand\}\$args"
          return [list ::apply [list args $body $ns]]
      }
    
    so that
      namespace code ns script ?arg ...?
    becomes
      ::apply [list args "$script \{expand\}\$args" ns]
    ?arg ...?
    
    Note that it is trivial to implement this in C and
    include it in the ensemble: the proc above is an
    illustration, not an actual implementation suggestion.
    
    This would also allow us to retire crazy aunt Tillie
    from her duties in ::unknown :)
    
    
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to: "kill [namespace inscope]"
  12. type changed to: "RFE"