Qore identifiers must start with an alphabetic character, and then may contain any number of alphabetic, numeric, or "_" characters. There is no length limit on Qore identifiers.
All Qore identifiers are case-sensitive, therefore the identifier hello_there
is not the same as Hello_There
or HELLO_THERE
.
The following are examples of valid Qore identifiers:
Table 2.3. Examples of Valid Qore Identifiers
Identifier | Description |
---|---|
| Simple one-character identifier |
| Identifier with number |
| Long identifier with underline characters |
| Identifier with underline and number |
| Mixed case identifier name |
| Identifier in all capital letters |
The following are invalid identifiers:
Table 2.4. Examples of Invalid Qore Identifiers
Identifier | Description |
---|---|
| Does not start with an alphabetic character |
| Contains "-" characters |
| Contains "#" character |