Constants
A constant is named value defined in either a namespace, a class or an interface. No constant is defined at the top level, outside a namespace. The value is static.
Referring to constants
For a constant SOME_CONSTANT_NAME in a namespace Namespace, the hierarchical SML name is Namespace.SOME_CONSTANT_NAME.
For example, GLib.PRIORITY_DEFAULT_IDLE.
For a constant SOME_CONSTANT_NAME in a class or interface Type in a namespace Namespace, the hierarchical SML name is Namespace.Type.SOME_CONSTANT_NAME.
There is no example of this in the currently supported libraries.
The specification of SOME_CONSTANT_NAME in the signature NAMESPACE or NAMESPACE_TYPE has the form:
val SOME_CONSTANT_NAME : valueType
where valueType is the type of the constant, as described in the section Types.
For example, the specification of the constant GLib.PRIORITY_DEFAULT_IDLE is
val PRIORITY_DEFAULT_IDLE : LargeInt.int