updating oE call_func


<built-in> function call_func(integer id, sequence args={}) 

calls the user-defined Euphoria function by routine id.

  1. id : an integer, the routine id of the function to call
  2. args : a sequence, the parameters to pass to the function.

The value, the called function returns.


If id is negative or otherwise unknown, an error occurs.

If the length of args is not the number of parameters the function takes, an error occurs.


id must be a valid routine id returned by routine_id.

args must be a sequence of argument values of length n, where n is the number of arguments required by the called function. Defaulted parameters currently cannot be synthesized while making a indirect call.

If the function with id id does not take any arguments then args should be {}.

Example 1:

Take a look at the sample program called demo/csort.ex

See Also:

call_proc, routine_id, c_func

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu