-
-
Notifications
You must be signed in to change notification settings - Fork 9
Function Pointer Call
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Function pointers are called by supplying the function pointer with arguments surrounded by parentheses, separated by commas.
my_function_pointer(argument1, argument2, argument3, argumentN)
Values that have a corresponding __pass__
function, will be passed through __pass__
before the function receives them. The function pointer itself, will never be affected by this.
The resulting value is the value returned by the function. If the function returns void
, then it cannot be used within an expression, but only as a statement.
If the callee returns a value that is ignored and the ignored value has a __defer__
, then the corresponding __defer__
will implicitly be called on the neglected value.