ONC+ Developer's Guide

Constant

Description

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

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

const DOZEN = 12;

Declaration

The declaration of a constant follows this form:

const name-identifier = n;