Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0bd3b2acbc11afa9c37be92aae29d23734b53118
Ticket: 1752146fffffffffffffffffffffffffffffffff
command limit is never reached in loops
User & Date: nobody on 2007-07-11 18:34:07
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
    *** release 8.5a6 - 2007-04-25
    
    in some cases, while interpreting some very short loop code, the command limit of the interpreter is never reached.
    
    
    For example, the following code never reach the command limit :
    *****************
    interp create testlimit
    testlimit eval {
    proc testlimit {} {
           while 1 {
        set b 22
    }
    }
    }
    interp limit testlimit commands -value 303
    testlimit eval testlimit
    ******************
    
    
    
    As well, the following code never reach the command limit :
    *****************
    interp create testlimit
    testlimit eval {
            set b 22
    proc testlimit {} {
           while 1 {
        incr b
           }
    }
    }
    interp limit testlimit commands -value 303
    testlimit eval testlimit
    ******************
    
    
    
    Conversely, the following code aborts when the command limit is reached (correct behavior) :
    *****************
    interp create testlimit
    testlimit eval {
            set b 22
    proc testlimit {} {
           while 1 {
        set b 22
        set a 22
           }
    }
    }
    interp limit testlimit commands -value 303
    testlimit eval testlimit
    ******************
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  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: "nobody"
  10. subsystem changed to: "20. [interp]"
  11. title changed to: "command limit is never reached in loops"
  12. type changed to: "Bug"