Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 57dc802ee873df1d90fd3e678d4ecdfec2087ee9
Ticket: 1202178fffffffffffffffffffffffffffffffff
Change [time] to return a float for count>1
User & Date: dgp on 2005-05-16 09:34:22
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    That sounds suspiciously like using
    the Tcl_ObjType to embody a value
    with meaning beyond its string rep.
    We're working on getting away from
    that in the few regrettable places
    where it's been done.  I think it's a
    mistake to make new abuse of
    ObjType's like that.
    
    One internals change kbk and
    I are considering is to set a
    Tcl_ObjType to "double" only
    if its string rep is not one that
    "LooksLikeInt".  The intent is
    to simplify lots of places that
    are now forced to check whether
    a "double" Tcl_Obj is "pure"
    before making use of the cached
    double.  Sounds like your trick
    would conflict with that.
    
    On the other hand, I don't think I
    have any objection to a proposal
    to change [time] to return a
    double instead of an int.  Rather
    than sneak around the issue, can
    we just embrace the change?
    
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"