Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 35129172608d10e7d26baf3426b2657f8cbf0326
Ticket: 2941443fffffffffffffffffffffffffffffffff
expr 9999999**9999999 kills my progs
User & Date: ferrieux on 2010-01-28 16:00:06
Changes

  1. closedate changed to: "2010-01-28T09:00:06"
  2. closer changed to: "ferrieux"
  3. icomment:
    As stated in  expr.n,  integer operations are done in arbitrary precision (no overflow).
    This is the case of ** when both operands are integer.
    
    So Tcl is not hanging, it is just computing a very large number. You can verify that by monitoring the process's CPU (100%) and memory consumption (increasing regularly). Of course at some point it may exhaust your system's resources, but we can hardly blame Tcl for the hardware not being a true Turing bandwidth with infinite tape ;-)
    
    Hence closing as Invalid.
    
    
  4. login: "ferrieux"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "ferrieux"