Overview
| Artifact ID: | b2927338b8f1a6a1327c6e2a22ba0472e5960b09 |
|---|---|
| Ticket: | 1788984fffffffffffffffffffffffffffffffff
[namespace code] doc improvement |
| User & Date: | dgp on 2007-09-05 20:58:23 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "21. [namespace]"
- title changed to: "[namespace code] doc improvement "
- type changed to: "Bug"