Skip to main content

Variables

Syntax

var_stmt ::= attributes "var" identifier ((":" type_expr [":=" expression]) | (":=" expression))

Description

...Memory locations with specific types are explicitly named as variables. When values are assigned to variables, they are stored in the designated memory location for that variable. If a type cannot be converted and the variable is a class type that has an overloaded suitable operator, it will be converted using a custom operator defined by the programmer. Otherwise, an exception TR007 is thrown.

Example

...