Hi, I have following codes:

Jess> (+ -1D +1D -1L +1L)
-1.0 isNumeric = true typeName = FLOAT
1.0 isNumeric = true typeName = FLOAT
0.0 isNumeric = true typeName = FLOAT
-1 isNumeric = true typeName = LONG
-1.0 isNumeric = true typeName = FLOAT
+1L isNumeric = true typeName = SYMBOL
Jess reported an error in routine Value.numericValue
       while executing (+ -1.0 1.0 -1 +1L).
 Message: '+1L' is a symbol, not  a number.
 Program text: ( + -1.0 1.0     +1L )  at line 5.

Should "+(number)L" return RU.LONG instead of RU.SYMBOL ?

And that single character "+" or "-" passes the ReadTokenizer isAnInteger
and isALong test.

Thanks.
Yuping

Reply via email to