Lhs cannot be used in rhs of =

When defining a variable via an equation, you cannot use it on the other side of that equation.

Example error

from int x
where x=3*x-2
select x

As illustrated by this example, having the defined variable appear on both sides of the equation would require arbitrarily complex equation solving in the evaluator. The .QL compiler is smart, but not that smart!

Comments
Only registered users can write comments!
 
< Prev   Next >