Variable parameter list: [ ]

Variable parameter list delimiters.

Syntax

[ variable [,...] ]

Usage

The square brace notation in function parameters defines a variable list of arguments for a built-in function or a built-in class method.

The elements of a variable parameter list are program variables which are passed by reference. As result, the called function can modify the content of the passed variables, to return values in output parameters.

It is not possible to define user functions with variable parameter lists.

For real usage examples, see the read and write methods of the base.Channel class.

Example

MAIN
  DEFINE id INTEGER, name STRING,
           count INTEGER, stat INTEGER
  LET id = 12345
  LET name = "Forman"
  -- Warning: This is a fake call, the function does not exist!
  -- Here, id and name are passed as input values, while count
  -- and stat are used as output parameters... 
  CALL built_in_function( [id,name], [count, stat] )
END MAIN