Skip to content

Field#

Introduction#

Fields are variables that live inside the memory allocated for an instance of a class or struct. To declare a field variable:

Field identifier : Type [ = Expression ]

...or...

Field identifier := Expression

For struct fields, Expression must not contain any code that has side effects.