Project

General

Profile

Previous Up Next

execch
This function is like 'exec ... with ...', but evaluates the function in a specific channel.
By example, 'execch _channel @f [1 "abc"]' is equivalent to 'exec @f with [1 "abc"]'

u1 execch (
Chn _channel_
fun u0 u1 _function_
u0 _arguments_
)
Parameters

_channel_
any channel
_function_
any function reference
_arguments_
arguments to pass to the function
Return value

result from the _function_

Error :

  • EOK if success.
  • EVM fatal error. The VM should be already crashed, see the log file, if any.
  • EARGNIL the 2nd or the 3rd argument is nil.