Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fe7517d645cf0365ee6bff8566c18f3e18eccb5a
Ticket: 3401704fffffffffffffffffffffffffffffffff
expr parses numbers before function names
User & Date: duquette on 2011-08-31 16:22:07
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    You cannot define expr functions with names that begin with numbers (including "inf" and "nan").  The expression parser looks for numbers before looking for function names.  For example,
    
        expr {2*nancy(5)}
    
    will throw the following error:
    
        missing operator at _@_ 
        in expression "nan_@_cy(5)"
    
    Function names beginning with a digit have the same problem.
    
    Note: it doesn't matter whether the tcl::mathfunc::nancy command is actually defined or not.
    
    
  4. foundin changed to: "obsolete: 8.5.10"
  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: "duquette"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "expr parses numbers before function names"
  12. type changed to: "Bug"