← All docs
is_callable() — internals
Compiler internals for is_callable(): lowering path, type checks, and runtime helpers.
is_callable() — internals
Where it lives
- Signature:
src/builtins/types/is_callable.rs - Lowering:
src/codegen/lower_inst/builtins.rs:714 (lower_is_callable) - Function symbol:
lower_is_callable()
Lowering notes
- Lowers
is_callable(value)through static lookup or runtime callable-shape helpers.
Runtime helpers
The following runtime helpers are referenced:
__rt_is_callable_array__rt_is_callable_assoc
Signature summary
function is_callable(mixed $value): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/is_callable.rs(eval_builtin!) - Dispatch hooks:
direct,values - By-reference parameters:
$callable_name.