Hi Oparra,
I don't think I explained myself properly. I am not asking about evaluating string expressions in variables, I am asking whether the B4J/java compiler evaluates constant. expressions in statements.
Most compilers do this:
Thus the machine code translated for the statement for a variable multiplied by two constants eg.
fredvar = var * 24 * 60 => gets executed as fredVar = var * 1440
The compiler does the calc 24 * 60 and the machine code is populated with a single var 1440. of the correct type.
I suspect the B4J/java compiler does this, I just want to be sure. If it doesn't do this then to speed things up it would be best to writie the statement as:
fredVar = var * 1440
It doesn't matter a lot unless the calc is done many times in a loop.
Best regards
Rob