Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 53f1a6836635c884bd2fe2e26eed2f2e0435026a
Ticket: 2901433fffffffffffffffffffffffffffffffff
documentation "bug" with Tcl.n
User & Date: wjc on 2009-11-20 21:46:16
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl.n says:
    
    If a word starts with the string “{*}” followed by a non-whitespace character, then the leading “{*}” is removed and the rest of the word is parsed and substituted as any other word. After substitution, the word is parsed again without substitutions, and its words are added to the command being substituted. For instance, “cmd a {*}{b c} d {*}{e f}” is equivalent to “cmd a b c d e f”.
    
    After talking with dgp on irc, and trying to explain this to someone helping out on partcl, I think this is a slight bug in the docs. Given the example:
    
    % puts {*}{abc\ndef}
    abc
    def
    
    We can see that there is another step happening here, as a result of treating the arguments to expand as a list.
    
    I would suggest perhaps that
    
    the word is parsed again without substitutions, and its words
    
    Might be more accurate as:
    
    the word is converted to a list, and the elements of that list
    
    (Bikeshedding on the actual text welcome, but I think we should mention "list" in here somewhere.)
    
  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: "wjc"
  10. subsystem changed to: "None"
  11. title changed to: "documentation "bug" with Tcl.n"
  12. type changed to: "Bug"