CompileErrors/A0003

From Compost Wiki
Jump to navigation Jump to search

A0003 - Embedded bytecode detected, typechecking may fail on nearby commands

Description

A0003 occurs when an embedded bytecode is present in the post text, and it is used as a parameter for another command. This normally occurs as a result of decompilation or a keyword list mismatch. Using embedded bytecodes as parameters is not supported. A0003 is normally preceded by a warning A0020.

Example of Cause

An embedded bytecode is present, representing CurrentSpeed#.

ADD#([4289], 100) { A0003 - Embedded bytecode detected, typechecking may fail on nearby commands }

Resolution

Replace the embedded bytecode with a supported command, subroutine call, or constant.

ADD#(CurrentSpeed#, 100) { No error. }