Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b2927338b8f1a6a1327c6e2a22ba0472e5960b09
Ticket: 1788984fffffffffffffffffffffffffffffffff
[namespace code] doc improvement
User & Date: dgp on 2007-09-05 20:58:23
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    "For example, suppose the command
    set script [namespace code {foo bar}]
    is invoked in namespace ::a::b.
    Then eval "$script x y"
    can be executed in any namespace (assuming the value of
    script has been passed in properly)
    and will have the same effect as the command
    ::namespace eval ::a::b {foo bar x y}."
    
    For literal values like "x" and "y" this
    advice is fine, but for a value containing
    substitution characters, this doesn't work.
    In order to prevent the substitution from
    happening, the "..." quoting has to be rejected
    as the script building tool.  This leaves
    us with the safer [list]-based building schemes.
    
    eval $script [list x y]
    
    or
    
    eval [linsert $script end x y]
    
    are more generally correct solutions.
    
    
  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: "dgp"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to: "[namespace code] doc improvement "
  12. type changed to: "Bug"