$TEST directive

Purpose: $TEST defines an area of code in which variables are

Like many of the other BCX meta-statements, the $TEST directive is like a toggle. The lines of code that are to be tested are sandwiched between two $TEST statements.

$TEST can be implemented from the BCX translator command line by using the -w switch. This will cause BCX to test the whole program being translated.

If modules are being included using the $INCLUDE directive, adding the -m command line switch will turn on tracking of the module name and module line number and this information will be reported with the $TEST ouput.

For example, this snippet


 $TEST

 DIM A#
 DIM A$

 $TEST

generates this warning

Two Variables Line 4 : A as char *  previously defined at Line 3 : A as double