ConstantDeclaration ::= "constant" Identifier "is" ExpressionA simple example to illustrate is:
constant PI is 3.141592654Here, we are defining a constant called
PI
which represents the decimal value "3.141592654". Constant declarations may also have modifiers, such as public
and private
.
@author David J. Pearce
|
|