← All docs
feof() — internals
Compiler internals for feof(): lowering path, type checks, and runtime helpers.
feof() — internals
Where it lives
- Signature:
src/builtins/io/feof.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3117 (lower_feof) - Function symbol:
lower_feof()
Lowering notes
- Lowers
feof(stream)through the runtime EOF-flag table helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_feof__rt_user_wrapper_ftell
Signature summary
function feof(resource $stream): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/feof.rs(eval_builtin!) - Dispatch hooks:
direct,values