Function invocations

A function invocation runs an EGL-generated function or a system function, with these effects:


Syntax diagram for function invocation

qualifier

One of the following symbols:

  • The name of the library in which the function resides; or

  • The name of the package in which the function resides, optionally followed by a period and the name of the library in which the function resides.

  • this (identifies a function in the current program)

For details on the circumstances in which the qualifier is unnecessary, see References to parts.

function name

Name of the invoked function.

argument

One of the following:

  • Literal

  • Constant

  • Data item

  • Record

  • Dynamic array of records or data items

  • A more complex numeric, text, or datetime expression

If the invoked function returns a value, the function invocation can be used only as the source value in an assignment statement. Regardless of whether the function returns a value, the invocation is followed by a semicolon, as in these examples:

   biggestNumber = maxOf(firstNumber,secondNumber);
   readNumbers();

The following rules apply:

The following rules apply to literals and constants:

Related concepts
Function part
References to parts
Syntax diagram

Related tasks
Assignments

Related reference
EGL statements
Function part in EGL source format
Primitive types
System words
System words in alphabetical order