← All docs
unset() — internals
Compiler internals for unset(): lowering path, type checks, and runtime helpers.
unset() — internals
Where it lives
- Signature:
src/types/signatures.rs - Lowering:
src/codegen/lower_inst/builtins/types.rs:48 (lower_unset_builtin) - Function symbol:
lower_unset_builtin()
Lowering notes
- Rejects
unset()calls that were not converted into direct EIR unbind operations.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function unset(mixed $var, ...$vars): void
What the type checker enforces
- Arity: takes exactly 1 argument.
- Variadic: collects excess arguments into
$vars.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/unset.rs(eval_builtin!) - Dispatch hooks:
direct,values - Variadic: collects excess arguments into
$vars.