Skip to content
Tcl Source Code History Of Ticket 1667660
Login

History Of Ticket 1667660

Artifacts Associated With Ticket 1667660

  1. Ticket change [7658359f14] (rid 105573) by dgp on 2007-02-24 05:49:16:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % lsort -integer {1 2 1000000000000000000000000}
      integer value too large to represent
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to: "[lsort -integer] not updated for bignums"
    12. type initialized to: "Bug"
  2. Ticket change [2d4d004879] (rid 119040) by afredd on 2007-02-26 19:12:48:

    1. icomment:
      Logged In: YES 
      user_id=1386588
      Originator: NO
      
      
      I don't see this as a bug, as the given string
      is not a Tcl integer:
      
      % info pat
      8.5a4
      % string is integer 1000000000000000000000000
      0
      
      ...and the docs for lsort say:
      
      # -integer 
      #  Convert list elements to integers
      #  and use integer comparison.
      
      Another argument for not changing -integer to
      support bigint's (and wides > 2**32!), is that
      this would slow it down considerably for all users,
      most of whom never go near bigints.
      
      However, i do think the example should be possible,
      but with a new option that does perform numeric
      comparison on *any* of Tcl's number types
      eg. [lsort -numeric ...]
      
      Also worth considering is the introduction of a
      <=> *operator* that does a numeric comparison like:
      
      proc ::tcl::mathop::<=> {a b} {
       if {$a > $b} {
        return 1
       } elseif {$a < $b} {
        return -1
       } else {
        return 0
       }
      }
      
      This would be especially useful in writing lsort
      comparison routines.
      
      Just my $0.02.
      
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  3. Ticket change [c08aa5964f] (rid 102421) by dgp on 2007-03-10 01:43:02:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      yes this is all wrapped up
      in the TIP 297 issues.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"