CompileErrors/A0019

From Compost Wiki
Jump to navigation Jump to search

A0019 - Subroutine name <subroutine> is also a keyword; this will lead to ambiguous calls!

Description

A0019 is issued when subroutine is declared with the same name as a keyword. This can lead to unpredictable behavior.

Example of Cause

CRCOn is a command.

CRCOn: { A0019 - Subroutine name CRCON is also a keyword; this will lead to ambiguous calls! }

RETURN

Resolution

Rename the subroutine.

TurnCRCOn: { No error }

RETURN