IDL 4.2 · §7.4.1.4.3

Constant

A const binds a name to a compile-time value of an integer, floating-point, character, boolean, string or enum type. Constant-expression folding (arithmetic, bit-ops, references to other consts) is evaluated by the parser.

Example

const long  MAX_SAMPLES = 1024;
const double PI          = 3.14159;

ZeroDDS support

OMG IDL 4.2 section§7.4.1.4.3
Implementationidl/src/ast
Testsparse_omg.rs
Status✓ RC3 — parsed, validated and code-generated across all target languages.

See also: IDL construct coverage · idl-4.2 audit · OMG IDL 4.2 spec