Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
const [2019/05/04 21:50] – created neils | const [2019/05/06 08:55] – neils | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== CONST statement | + | ====== CONST directive |
- | The '' | + | Syntax: |
const < | const < | ||
- | The constant can be subsequently used as a regular variable, except that it is read-only. The value may not be an expression. | + | The '' |
- | Constants of any types (bytes, integers or floats) may be defined. | + | Constants of any types (bytes, integers or floats) may be defined. The number must be a numeric literal (no expression is allowed here). |
Example: | Example: | ||
- | const BORDER = 53280 | + | const BORDER = $d020 |
const WHITE! = 1 | const WHITE! = 1 | ||