Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 36fad5d780252bb331cf6de716a082ee65ac6626
Ticket: 542588ffffffffffffffffffffffffffffffffff
bug in expr error handler
User & Date: nobody on 2002-04-11 18:05:34
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % set begin 6658020034
    6658020034
    % set end   658020034
    658020034
    % expr abs($end - $begin)
    integer value too large to represent
    % expr { abs($end - $begin) }
    can't use floating-point value as operand of "-"
    % expr { abs(658020034 - 6658020034) }
    integer value too large to represent
     
    Can someone explain where Tcl thinks the floating
    point value is?  And why is a floating point value
    not a valid operand of "-"?
    
     - Phil Ehrens
     
    This is just an example of too much sharing of a
    common routine for producing an error message.
    
    There's one routine for generating the "illegal
    operand" error message, and by the time it is called,
    the context isn't around any more to tailor the
    message precisely. So the error message generator
    knows that "658020034" was "bad", and it can see that
    that is a legal floating-point value, so it assumes
    that the error is that a floating-point value was used
    where it should not be. Go ahead and file a bug report
    under the "ByteCode Compiler" Category.
    
    - Don Porter
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "bug in expr error handler"
  11. type changed to: "Bug"