← All docs
link() — internals
Compiler internals for link(): lowering path, type checks, and runtime helpers.
link() — internals
Where it lives
- Signature:
src/builtins/io/link.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5449 (lower_link) - Function symbol:
lower_link()
Lowering notes
- Lowers
link(oldpath, newpath)through the target-aware libc wrapper.
Runtime helpers
The following runtime helpers are referenced:
__rt_fileatime__rt_filectime__rt_link__rt_readlink
Signature summary
function link(string $target, string $link): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/link.rs(eval_builtin!) - Dispatch hooks:
direct,values