HP 3000 Manuals

ANSI [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

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
         0    4.000   0    BEGIN
         0    5.000   0       assert(false,0);
         0    6.000   0          ^

     **** ERROR #  1 THIS FEATURE REQUIRES $STANDARD_LEVEL "HP_PASCAL" (539)
         1    7.000   0    END.



MPE/iX 5.0 Documentation