Syntax Notes
This section describes the XDR language syntax.
The following considerations pertain to XDR language syntax:
- The following keywords cannot be used as identifiers:
- bool
- case
- const
- default
- double
- enum
- float
- hyper
- opaque
- string
- struct
- switch
- typedef
- union
- unsigned
- void
- Only unsigned constants can be used as size specifications for arrays. If an identifier is used, it must be declared previously as an unsigned constant in a const definition.
- In the scope of a specification, constant and type identifiers are in the same name space and must be declared uniquely.
- Variable names must be unique in the scope of struct and union declarations. Nested struct and union declarations create new scopes.