Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 45bbc638d7d7a26f18d276fc75fded482ffd0fe9
Ticket: 1047097fffffffffffffffffffffffffffffffff
Possible parsing problem. "list" command inccorectly assigns
User & Date: dkf on 2004-10-19 20:45:08
Changes

  1. closedate changed to: "2004-10-19T13:45:08"
  2. closer changed to: "dkf"
  3. foundin changed to: "final: 8.3.5"
  4. icomment:
    Logged In: YES 
    user_id=79902
    
    These are all not bugs; just funny (and inefficient) ways to
    construct lists.
    
    Tcl, by definition, concatenates lists and characters by
    converting the list to a string and concatenating strings.
    Then the join command (or any other list-consuming command)
    reinterprets the resulting string as a list again.  Of the
    characters you list ("[", ",", ".", "{", "}", ")", "\"), all
    except the {curly braces} and backslash have no meaning to
    the list parsing engine at all. When a curly brace starts a
    word in a list, that word extends up to the matching closing
    curly (which must not have any trailing chars) but that is
    the only time they are significant. Backslashes are special
    in front of some characters, but you have to distinguish
    between quoting them to the command you're typing in and the
    actual list engine.
    
    To summarize, what you've written is all correct and
    intended (if perhaps surprising the first time you encounter
    it.)
    
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"
  9. subsystem changed to: "14. List Object"
  10. username: "dkf"