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