HP 3000 Manuals

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


HP Pascal/iX Reference Manual

STDPASCAL_WARN 

STDPASCAL_WARN is an HP Pascal Option.

The STDPASCAL_WARN compiler option allows you to compile and execute
syntax, which otherwise would have been issued an error message due to
non-conformity with the ANSI/ISO standard.

A new error message can now be issued for syntax in HP Pascal that does
not conform to the ANSI/ISO standard.  This message may be issued only
when one of the following compiler options is specified:  ANSI ON,
STANDARD_LEVEL 'ANSI', or STANDARD_LEVEL 'ISO'. In order to have a
warning issued rather than this error message, specify the compiler
option STDPASCAL_WARN.

Syntax 

$STDPASCAL_WARN {ON }$
                {OFF}

Location      Anywhere.

Default       OFF.

Examples 

     $STANDARD_LEVEL 'ANSI'$
     PROGRAM p;
     VAR
        lr : longreal;
                 ^
     **** ERROR #1 THIS FEATURE DOES NOT CONFORM WITH THE ANSI/ISO STANDARD (044)
     BEGIN
     END.

In this example, an error message is issued because PROGRAM p does not
conform to ANSI/ISO standard Pascal.

     $STDPASCAL_WARN ON$
     $STANDARD_LEVEL 'ANSI'$
     PROGRAM p;
     VAR
        lr : longreal;
                 ^
     **** WARNING # 1 THIS FEATURE REQUIRES $STANDARD_LEVEL 'HP_PASCAL' (539)
     BEGIN
     END.

In this example, STDPASCAL_WARN is specified so a warning is issued
instead of an error message.



MPE/iX 5.0 Documentation