#218 internal double ++ error

open
nobody
General (151)
5
2005-06-03
2005-06-03
Michael Ross
No

bsh 2.0b4, Mac OS X Server 10.3.9, Java 1.4.2

bsh % for (i = 0.1; i <= 1; i++) { print(i); }
0.1
// Error: Internal Error: bad double unaryOperation
bsh.InterpreterError: bad double unaryOperation
at bsh.Primitive.doubleUnaryOperation(Unknown Source)
at bsh.Primitive.unaryOperation(Unknown Source)
at bsh.BSHUnaryExpression.unaryOperation(Unknown Source)
at bsh.BSHUnaryExpression.lhsUnaryOperation(Unknown
Source)
at bsh.BSHUnaryExpression.eval(Unknown Source)
at bsh.BSHStatementExpressionList.eval(Unknown Source)
at bsh.BSHForStatement.eval(Unknown Source)
at bsh.Interpreter.run(Unknown Source)
at bsh.Interpreter.main(Unknown Source)

Discussion