HP Pascal/iX Reference Manual (31502-90022)

2- 7
PROCEDURE writeit;
CONST
x = 'LOCAL AND GLOBAL IDENTIFIERS DO NOT CONFLICT';
BEGIN
write (x)
END; {writeit}
BEGIN { show_scope }
x:= asterisk;
write (x);
writeit;
write (x);
writeln;
END. { show_scope }
RESULTS:
*LOCAL AND GLOBAL IDENTIFIERS DO NOT CONFLICT*
Numbers
HP Pascal recognizes three kinds of numeric literals:
integer, real,
and
longreal
.
Integer Literals
An
integer literal
consists of a sequence of digits from the subrange 0
through 9. No spaces may separate the literal, and leading zeroes are
not significant. The compiler interprets unsigned integer literals as
positive values.
The maximum
unsigned integer literal
is equal in value to the standard
constant
maxint
. The minimum
signed integer literal
is equal in value to
the standard constant
minint
. The actual values of
minint
and
maxint
are
implementation dependent; however, at least 9 decimal digits are allowed.
Refer to the
HP Pascal/iX Programmer's Guide
or the
HP Pascal/HP-UX
Programmer's Guide
, depending on your implementation, for more
information.
Syntax
Unsigned Integer:
Signed Integer: