Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b4fec1e69d352765c4b820dbd2808fac1b74a82
Ticket: 991371ffffffffffffffffffffffffffffffffff
format problem with wide ints
User & Date: bgriffin on 2004-07-16 12:21:53
Changes

  1. icomment:
    Logged In: YES 
    user_id=22949
    
    Compiler bugs aside, I question why isn't %d automatically promoted to 
    %ld if/when Obj is a Wide int?  Otherwise, tcl programmers are forced to 
    concern themselves with type in a "typeless" language.  This doesn't 
    seem right to me.
    
    See, if the wide int was actually indeed larger than LONG_MAX (>32-
    bits) then an error would have been produced legitimately.  This means 
    at the tcl level one must concern themselves with %d vs %ld.  But these 
    notions were invented to deal with different types (int vs long).  Tcl is 
    not supposed to be "typed".
    
    
  2. login: "bgriffin"
  3. mimetype: "text/plain"
  4. username: "bgriffin"