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