Submitted by: LGR
Severity: Annoyance
Status: In progress
Description:
Compiler expects a literal (and literal only) where constant expression should be expected.
Example:
Code: Select all
const SIZE = 32;
var stack : array[SIZE] of byte;
// returns an error: identifier SIZE not declared
Use literals instead of constants, e.g.
Code: Select all
var stack : array[32] of byte;