Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de5165d09ac4036ad2f5fda6af525f01899ea15c
Ticket: 776614ffffffffffffffffffffffffffffffffff
Incremental evaluation of scripts
User & Date: ysutjandra on 2003-07-24 00:25:07
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
    Currently, when I source a file, TCL creates a buffer 
    whose size is equivalent to the size of the file.  Then 
    evaluate the buffer altogether.
    
    I'm asking for a utility whereby I can specify the size of 
    buffer I want Tcl_SourceObjCmd to work with.  And as 
    much as possible, TCL does not grow this buffer size, 
    unless if needed.  
    
    A possible example where growing the buffer size is 
    needed is if you encounter a flow-control commands 
    such as while, for, etc, or any other commands that 
    require a open-curly-brace and close-curly-brace.
    
    This kind of feature will be very useful when most of the 
    time you source a script that is really-really-really huge.
    
    A good testcase maybe a 100,000-line script where 
    each line is doing the same thing.
    
       for { set i 0 } { $i < 10 } { incr i } { }
       for { set i 0 } { $i < 10 } { incr i } { }
       for { set i 0 } { $i < 10 } { incr i } { }
       ...
    
    -- Yohan
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "ysutjandra"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "Incremental evaluation of scripts"
  11. type changed to: "RFE"