HP Pascal/iX Reference Manual (31502-90022)

12- 8
Default Depends upon packing algorithm.
Location After the symbol = in a type definition.
Example
TYPE
Rec = $ALIGNMENT 16$
RECORD
F1 : Integer;
F2 : ShortInt;
F3 : Real;
END;
Integer_ = $ALIGNMENT 2$ Integer;
Ptr = ^Integer_;
ANSI
ANSI is an HP Standard Option.
When the ANSI compiler option is ON, the compiler issues an error
whenever it encounters a feature in the source code that is illegal in
ANSI Standard Pascal. The compiler compiles the illegal feature if
possible; otherwise it is a syntax error. The error appears in the
listing.
The command line option -A also specifies this option.
Syntax
$ANSI {ON }$
{OFF}
Default OFF
Location Anywhere.
The options $ANSI ON$ and $STANDARD_LEVEL 'ANSI'$ are equivalent.
Example
PAGE 1 HEWLETT-PACKARD ... (C) HEWLETT-PACKARD CO. 1986 ...
0 1.000 0 $ANSI ON, OS 'MPEXL'$
0 2.000 0 PROGRAM t;
0 3.000 0