Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1237787d2e6f59911d42da7cdbdb3b871a967c48
Ticket: 776614ffffffffffffffffffffffffffffffffff
Incremental evaluation of scripts
User & Date: dgp on 2016-07-02 19:03:11
Changes

  1. closedate changed to: "2457572.29387844"
  2. 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
    
  3. login: "dgp"
  4. mimetype: "text/plain"
  5. severity changed to: "Minor"
  6. status changed to: "Closed"