HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
9-: 2
* All trace statements.
* All untrace statements.
* PAUSE statement.
When the compiler encounters one of these statements that are primarily
for debugging, it issues a warning message and continues. The compiler
does not generate code for the statement that caused the warning.
The following statements cause a run-time error:
COMMAND GETSUB RESAVE SECURE
DEFAULT LINK SAVE
DELETE MERGE SCRATCH
When the compiler encounters one of these statements, it issues a warning
message and generates code that causes run-time error #2103. The
INTERPRETED built-in function can be used to avoid executing these
statements in a compiled program.
The compiler must be able to determine the number of dimensions of every
array at compile time. If it encounters an undeclared array or an array
parameter for which the dimensions cannot be determined at compile time,
for example, an array that appears only in a MAT PRINT statement, the
compiler issues an error message. The interpreter command, CWARNINGS,
lists noncompilable statements in the current program. The CWARNINGS
command is a command-only statement.
Syntax
CWARNINGS
Non-compilable Program Units
A program unit cannot be compiled unless it is
well-formed
. A
well-formed
program unit has properly matching constructs, such as a NEXT
for every FOR, and its array references are consistent with its array
declarations.
The interpreter checks a program unit's form before executing or saving
it. When a program containing a poorly formed program unit is saved, the
interpreter issues a warning message and marks the program unit as
noncompilable.
If the programmer attempts to compile the program, the compiler issues
the error message
VERIFY is needed on subunit
program_unit
and does not generate code for
program_unit
. The compiler cannot
diagnose the error; the programmer must return to the interpreter and use
the VERIFY command.
COPTION and GLOBAL COPTION Statements
The COPTION and GLOBAL COPTION statements gives you control over the code
and listing that the compiler generates.
The GLOBAL COPTION statement is allowed only in the main block of a
program. It establishes defaults to be used throughout the program. The
COPTION statement can be used in any program unit.
Syntax
{
i_option
}[ {
i_option
}]
[GLOBAL] COPTION {
s_option
}[, {
s_option
}]...