Typing Addition

Short Reference

Syntax

... { TYPE generic_type }
  | { TYPE {[LINE OF] complete_type}
         | {REF TO {data|complete_type|class|intf}} }
  | { LIKE {[LINE OF] dobj}
         | {REF TO dobj} } ...

Effect

The addition typing is part of the definition of formal parameters and field symbols in the statements:

The addition allows a generic typing with generic_type and a complete typing with complete_type. If the addition typing is not specified, typing is carried out implicitly with the generic type any.

Note

In classes, the formal parameters of methods or events and field symbols must be explicitly typed. The formal parameters of methods or event of global classes and the formal parameters of function modules are typed in the class or function builder.