Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
$DECLARE and $NODECLARE
◄Up► ◄Contents► ◄Index► ◄Back►
─────$DECLARE and $NODECLARE────────────────────────────────────────────────
Action
$DECLARE generates warnings for variables that have not appeared in
specification statements, and $NODECLARE disables these warnings.
Syntax $[NO]DECLARE
Remarks
The default is $NODECLARE. When $DECLARE is enabled, a warning
message is generated at the first use of any variable that has
not been assigned a value in a specification statement. The
$DECLARE metacommand is primarily a debugging tool that locates
variables that have not been properly initialized, or that have
been defined but never used.
Example
$DECLARE
C Since the variable z has not been assigned a value,
C its use in the statement labeled 100 causes an error:
REAL x, y, z
y = 1.0
100 x = y + z
$DECLARE and $NODECLARE are equivalent to the /4{Y | N}d compiler
option.
-♦-