|
Using Const we can create symbolic constants local in a CalcIt code.
In the above example we create two constants a1 and a2. In the second line of the code there is an expression. Because all the elements participating in this expressions are constants then it can be evaluated at compile time and so is accepted by the compiler. The CalcIt compiler will reject any expression that cannot evaluate itself. We can declare public constants in Class defintions. See also Constants, Using Classes and Class variables. |