Next: , Previous: , Up: Functions   [Index]


3.4.8 Variadic Functions

Variadic functions are functions of indefinite arity, i.e. accepting a variable number of arguments. Much like in C, the first arguments are named and typed, while the additional (unnamed) arguments may come in any number and type.

Since the expression evaluator delivers the function arguments as an array, the delivery of the values of the unnamed arguments does not stretch the function call interface much. The delivery of their number and types does, though.

A function description in the struct x1f4_function_type definition indicating the number of arguments and their types is presented to the C routine supporting the the symbolic function as part of the extended execution context.

See Extended Execution Context.

See Extended Execution Context Definitions.

The variadic function definitions are introduced as the rest of function definitions and include the X1f4_E4_SIDE_LIST bit in their flag bits.

See Function Flags.

See struct x1f4_function_type.

The argument count and types in their struct x1f4_function_type definition refer the initial mandatory arguments.