← All docs
fclose() — internals
Compiler internals for fclose(): lowering path, type checks, and runtime helpers.
fclose() — internals
Where it lives
- Signature:
src/builtins/io/fclose.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:2705 (lower_fclose) - Function symbol:
lower_fclose()
Lowering notes
- Lowers
fclose(stream)after validating and unboxing the stream handle.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function fclose(resource $stream): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/fclose.rs(eval_builtin!) - Dispatch hooks:
direct,values