pTAL Reference Manual (H06.03+)

Language Elements
HP pTAL Reference Manual523746-005
2-9
Identifiers
Each identifier belongs to an identifier class. The compiler determines the identifier
class based on how you declare the identifier.
.
Example 2-1. Correct Identifiers
a2
HP
_2345678012_31_characters
name_with_exactly_31_characters
Example 2-2. Incorrect Identifiers
Identifier Problem
2abc Begins with a number
ab%99 Contains % symbol
VARIABLE Reserved word
Table 2-8. Identifier Classes
Class Description
Block Global data block
Code Read only (P-relative) array
Variable Simple variable, array, nonstructure pointer, structure pointer
, structure, or
structure data item
DEFINE* Named text
Function Procedure or subprocedure that returns a value
Label Statement label
LITERAL Named constant
PROC Procedure or subprocedure that does not return a value
Template Template structure
* Available only on Guardian platforms.