Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f57f363cd15b16a307a3301b3e6244cf77997d50
Ticket: 866469ffffffffffffffffffffffffffffffffff
Integers aren't strings anymore
User & Date: dkf on 2004-01-01 23:54:44
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    Yuck.
    
    The problem is balancing between the real need for 64-bit
    values and the (unknown) quantity of code out there that
    assumes that int values are 32-bits wide.  If it hadn't been
    for that (and the speed implications on 32-bit platforms),
    I'd have preferred to make all integers 64-bits wide on all
    platforms.
    Trying to do something with magic representation shimmering
    is unlikely to work well, since it is hard to make the
    processor math ops give some kind of trap when they lose
    information during the processing of ints.  Getting a cheap
    way to perform the type guards is the critical part, that
    and defining a non-surprising way to deal with the situation
    (which currently escapes me.)
    
    If you want to try your hand at fixing math ops, their
    semantics are defined entirely within tclExecute.c; the
    math-related ops start at INST_EQ and are mostly
    self-explanatory (if long.)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. priority changed to: "1 Zero"
  5. subsystem changed to: "47. Bytecode Compiler"
  6. username: "dkf"