Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9d0e895439f7e6a59ee05be2ade96bca1d021305310a8bfef3bc9d608f1265a3
Ticket: a11678b75917f88a53e22d487728a35367356e56
documentation improvement: "after 0 cmd"
User & Date: oehhar on 2022-08-18 11:51:05
Changes

  1. icomment:
    Thanks, Sergey, I appreciate.
    
    I suppose, it is quite complicated to express this in the man page.
    
    I looked to the implementation. Apparently "after 0" is not a no-op, but does wait a sort of a cycle.
    
    Also, the wide int time is split to a long type as seconds.
    There are calculations on a long type without any guard against overflow.
    A long is 32 bit. So, with 4.294.967.296 seconds, I will hit an overflow.
    
    <verbatim>
    % after 4294967296000 "puts a"
    after#8
    a
    </verbatim>
    
    It returns immediately. So, there is an overflow ;-).
    
    Maybe, overflow handling would be great.
    
    Take care,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/plain"
  4. username: "oehhar"