pTAL Reference Manual (H06.03+)

Data Representation
HP pTAL Reference Manual523746-005
3-12
Constants
Testing a Pointer for a Nonzero Value
You can test a pointer for a nonzero value without specifying the constant zero. For
example, if i is declared:
int .i;
Then these two statements are equivalent:
if (@i) then ...
if (@i <> 0) ...
You can test an EXTADDR pointer for a nonzero value without specifying the constant
zero. For example, if j is declared:
int.ext j;
Then these two statements are equivalent:
if (@j) then ...
if (@j <> 0D) ...
Constants
Character String on page 3-12
STRING Numeric on page 3-14
INT Numeric on page 3-15
INT(32) Numeric on page 3-16
FIXED Numeric on page 3-17
REAL and REAL(64) Numeric on page 3-19
Constant Lists on page 3-21
Constant List Alignment Specification on page 3-22
Character String
A character string constant consists of one or more ASCII characters stored in a
contiguous group of bytes.
" "
string
VST001.vsd