Next: , Up: Functions   [Index]

8.1 Calling Functions

Functions are called with arguments in the number and types prescribed by the function parameters lists.

Implicit convertions are performed between related types for function arguments, notably between intrinsic numerical types and between the ‘object’ type and any other type.

The types of the argument values must either match or be convertible to the function described parameter types.

See The Object Type.

See The Intrinsic Types.

See Implicit Convertions.

Function calls evaluate to values of the function return type.

The function call syntax has the function name followed by the parantheses enclosed list of arguments, with the arguments comma separated.

    pow(4, 4);
    o_real(4, sin(.5));
    r_put(r, "key", "value");

Reference parameters command read/write variable arguments, except for variadic reference typeless parameters.