Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 84cb5293c4fba9725e6903612e785ee7e6e25744
Ticket: 3600057fffffffffffffffffffffffffffffffff
[string is double "0x5"] bug?
User & Date: dgp on 2013-09-09 13:07:56
Changes

  1. icomment:
    The -real option for [lsearch] arrived in Tcl 8.4:
    
    % info patch
    8.4.0
    % lsearch -exact -real {0x5 2} 2
    1
    
    (Combining -exact and -real is strange. but there it is)
    
    The ticket claims about [lsearch] just are not correct
    as far as I can tell.
    
    The consistent rule implemented by Tcl is that all 
    integers are doubles.  That is, the double "equivalent"
    can be determined and used.  This is in the sense of
    [string is double] as well as Tcl_GetDoubleFromObj().
    
    ("equivalent" can be rather loosely interpreted.  All large
    enough bignum integers are equivalent to the double value "Inf")
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. resolution changed to: "Invalid"
  5. status changed to: "Pending"