This page
describes the rules for naming parts and variables and for assigning values
to properties such as file name. For details on
how logic parts can reference areas of memory, see References to variables
and constants and Arrays.
Three categories of identifier are in EGL:
- EGL part and variables names, as described later.
- External resource names that are specified as property values in part
or variable declarations. These names represent special cases, and the naming
conventions depend on the conventions of the runtime system.
- EGL package names such as com.mycom.mypack. In this case, each character
sequence is separated from the next by a period, and each sequence follows
the naming convention for an EGL part name. For details on the relationship
of package names and file structure, see EGL projects, packages, and files.
An EGL part or variable name is a series of 1 to 128 characters. Except
as noted, a name must begin with a Unicode letter or underscore and can include
additional Unicode letters as well as digits and currency symbols. Other restrictions
are in effect:
- The first characters cannot be EZE in any combination of uppercase and
lowercase
- A name cannot contain embedded blanks or be an EGL reserved word
Special considerations apply to parts:
If your code is compatible with VisualAge® Generator, the following
rule applies to part and variable names but have no effect on package names:
Characters after the initial character can include "at" signs (@), hyphens
(-), and pound signs (#).