The const modifier is used to create a constant.
const <type> name = <initializer>
The <type> here must be predefined type in Cyclone, and the <initializer> could be a value or an expression that evaluates to a value.
The const modifier must appear in front of a type declaration.
A constant is always compiled into a pre-defined value and cannot be re-assigned (changed). A constant cannot be used with fresh or initial expressions.
const real PI=3.14;
@2020-2022 Hao Wu. All rights reserved. Last update: March 20, 2022