Identifiers
Tusk follows the same rules for identifiers as Delphi:
identifiers begin with a letter or underscore,
after which may follow letters, digits, and underscores.
Tusk has many keywords, listed here,
which may be used as identifiers in three contexts…
- A keyword may be used as the right-hand operand of the dot operator, for example: Bag.Unit := 'km';
- A keyword may be used as a property name in an object literal… var Bag := { Amount = 100, Unit = 'km' };
- To use a keyword as an identifier, escape it with an ampersand character… var &File := '<' + &Label + '>';
⏱ Last Modified: 2/15 10:06:11 am