← All docs
vprintf() — internals
Compiler internals for vprintf(): lowering path, type checks, and runtime helpers.
vprintf() — internals
Where it lives
- Signature:
src/builtins/string/vprintf.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:592 (lower_vprintf) - Function symbol:
lower_vprintf()
Lowering notes
- Lowers
vprintf(format, values)asvsprintf()followed by stdout emission.
Runtime helpers
The following runtime helpers are referenced:
__rt_sprintf
Signature summary
function vprintf(string $format, array $values): int
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/formatting/vprintf.rs(eval_builtin!) - Dispatch hooks:
direct,values