Dokumentaro de Gambaso
Compilation & Installation
Components
Documents
Indekso de Lingvo
Language Overviews
Stream & Input/Output functions
LeguMin
Lexicon
Registro

Using reserved keywords as identifiers

To use a property name that is also a Gambas reserved name in your personal class, you must enclose the property name within { }.

Will both cause a compile error Will not
Property Font As Font Property {Font} As Font
Property Left As Integer Property {Left} as Integer

Thus the compiler is kept from interpreting a symbol as a reserved keyword which allows you to use any desired symbol as an identifier.

This syntax can be used for methods declaration, constants declaration, events declaration, arguments... Anywhere an identifier is accepted.

See also