ONC+ Developer's Guide


const is used to define a symbolic name for a constant. It does not declare any data. The symbolic constant can be used anywhere a regular constant can be used.

The following example defines a symbolic constant DOZEN, equal to 12.

const DOZEN = 12;


The declaration of a constant follows this form.

const name-identifier = n;