CompileErrors/A0014

From Compost Wiki
Revision as of 01:36, 14 January 2015 by Danielr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A0014 - Illegal control character in literal; use ASCII instead.

Description

Literals are not allowed to have embedded control characters (such as NUL, BEL, or TAB). This error indicates that such a literal has been found.

Example of Cause

The following literal contains a BEL character.

'Beep: ␇' { A0014 - Illegal control character in literal; use ASCII instead. }

Resolution

Remove the control character from the literal. Ordinarily, replacement with ASCII is preferred.

'Beep: ' ASCII('7') { No error }