$COMPLIANCE Language compliance level


General Form:

$COMPLIANCE compliance-level

To have any effect, this statement must be the very first statement in the program.

The $COMPLIANCE statement is used to set the language level with which the program complies. The $COMPLIANCE statement only has any effect if it is one of the very first statement in the program or library (specifically, only REM, $ID and blank lines may precede it). The compliance-level currently supports three values:

Future versions of KCML will support higher levels. The idea here is to encourage better programming standards, to discourage obsolete elements of the language and to remove some features that stop KCML operating more efficiently.

The $COMPLIANCE level of the executing program can be inspected in byte 57 of $MACHINE.

See also:

$LEGACY DEFSUB