Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60f2bbb1880652e32a6c68a76f4116d7f816f8b5
Ticket: 1564517fffffffffffffffffffffffffffffffff
[expr]: handling of negative literals
User & Date: msofer on 2006-09-24 13:16:19
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Negative numeric constants are stored as a positive
    literal, and UMINUS is executed on it at runtime:
    
      Command 1: "expr {$v > -99}"
        (0) loadScalar1 %v0         # var "v"
        (2) push1 0         # "99"
        (4) uminus
        (5) gt
    
    This can be very costly if happens in a loop (see 
    http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/b2a6592f802dfddc/82517b5f8bf2b145
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "[expr]: handling of negative literals"
  12. type changed to: "Bug"