← All docs
call_user_func_array() — internals
Compiler internals for call_user_func_array(): lowering path, type checks, and runtime helpers.
call_user_func_array() — internals
Where it lives
- Signature:
src/builtins/callables/call_user_func_array.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:37 (lower_call_user_func_builtin_escape) - Function symbol:
lower_call_user_func_builtin_escape()
Lowering notes
- Rejects
call_user_func*calls that escaped the dedicated EIR callback lowering path.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_product__rt_array_sum
Signature summary
function call_user_func_array(callable $callback, array $args): mixed
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/core/call_user_func_array.rs(eval_builtin!) - Dispatch hooks:
direct,values