Open neilsf opened 1 year ago
Members of an expression are converted to the same type in runtime only. For example, the expression
DIM x AS FLOAT, y AS FLOAT x = y + 1
will be compiled to the following runtime code sequence:
We should avoid conversion in runtime and do the work in compile time.
Note: using floating point literals solves the problem, but programmers aren't always aware of this, e. g:
x = y + 1.0
Members of an expression are converted to the same type in runtime only. For example, the expression
will be compiled to the following runtime code sequence:
We should avoid conversion in runtime and do the work in compile time.
Note: using floating point literals solves the problem, but programmers aren't always aware of this, e. g: