I am having some difficulty with the #constant keyword. It is possible to define a constant with a value, i.e
#constant constA 5
#constant constB 10
But does not seem possible to define constants with constants, i.e
#constant constC (constA + constB)
as this will yield constC holding the value of 0
It is possible to define a constant using a variable but the value of the constant will alter when the variable value is altered. i.e
var = 13
#constant constD (var + 7)
constD will hold the value 20 but if the variable is then incremented
var = var + 1
constD will then hold the value 21, so constD is not taking the value of var at the time the constant is defined but making some form of reference to var
Is the #constant keyword actually some form of macro and is it possible in any way to define constants in terms of other constants ?