diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-01-24 11:52:37 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:43 +1000 |
commit | 69364efd1631cfe9d10e855d5917b9d9ec7122fc (patch) | |
tree | 4dbd0e6b319ad485297907ad0e6d9a4f08cd90e3 /jim.h | |
parent | b367df9ca11f36a392b97afc2767694f8bfe1c4f (diff) | |
download | jimtcl-69364efd1631cfe9d10e855d5917b9d9ec7122fc.zip jimtcl-69364efd1631cfe9d10e855d5917b9d9ec7122fc.tar.gz jimtcl-69364efd1631cfe9d10e855d5917b9d9ec7122fc.tar.bz2 |
Fix many problem with expr evaluation
*: Import Tcl expr tests (expr-old.test) and fix things:
*: !double should be boolean (int)
*: double&&double and double||double should be boolean (int)
*: 2.34e+1 and 2.0e2 are an acceptable double values
*: precedence of && and || is not equal
*: precedence of ? and : is not equal
*: expression "2:3" is invalid
*: lazy evaluation involving multiple && and || was quite wrong
*: Fix unary minus wrt subexpressions. e.g. -(-1.5)
*: Also add support for functions: int, double, abs, round
*: Fix lazy evaluation of ternary operator
*: Error on missing ?, missing :
*: Fix double unary minus
*: Add unary plus
*: Fix parsing of double with no '.' before 'e'. Also support 'E'.
*: Right-to-left associativity of ternary operator is *almost* correct
*: Import div/mod of -ve integers from Tcl
*: Rotate (<<< and >>>) failed because of wrong arity
*: Don't use auto-converted double values
*: When an expression fails, show the expression
*: Bump version to 0.62
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ extern "C" { /* Jim version numbering: every version of jim is marked with a * successive integer number. This is version 0. The first * stable version will be 1, then 2, 3, and so on. */ -#define JIM_VERSION 61 +#define JIM_VERSION 62 #define JIM_OK 0 #define JIM_ERR 1 |