Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a855fdc4baa0af9c388942084d68aaba50133309
Ticket: 218613ffffffffffffffffffffffffffffffffff
A command to dissect strings the same way `eval' does
User & Date: nobody on 2000-10-26 01:03:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1452 RFE
    Version: 8.0p2
    SubmitDate: '1999-03-04'
    LastModified: '1999-12-03'
    Severity: LOW
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    OS: Linux
    OSVersion: Evolved slackware
    Machine: Other
    FixedDate: '1999-12-03'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Harald
    
    DesiredBehavior:
    As an example, take a look at
    
      eval {puts hallo; puts tschuess}
    
    Obviously `eval' takes its argument apart at nonstandard places,
    in particular at (non-escaped) semicolons and newlines. It is
    rather tedious to write a pure-tcl proc which does the same
    dissection. Examples were posted and may be found in dejanews
    with keyword `commandsplit'.
    
    It would be great to have such a command in the Tcl-core because
    it would allow a lot of interesting applications which enhance
    ``simpler'' syntax exposed to users before commands are really
    executed.
    
    I assume the Tcl-core would be the best place for such a command
    because eval does already all the work. If only I could tell it
    to return the commands it finds instead of executing them.
    
    
    
    
    
    The 8.1 core adding a new parser that is available in the C API.
    Moving this to the Tcl level is not in the forseeable future. 
    -- 12/03/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0p2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    A command to dissect strings the same way `eval' does
    
  11. type changed to: "RFE"