← All docs
ftell() — internals
Compiler internals for ftell(): lowering path, type checks, and runtime helpers.
ftell() — internals
Where it lives
- Signature:
src/builtins/io/ftell.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3129 (lower_ftell) - Function symbol:
lower_ftell()
Lowering notes
- Lowers
ftell(stream)aslseek(fd, 0, SEEK_CUR).
Runtime helpers
The following runtime helpers are referenced:
__rt_user_wrapper_ftell
Signature summary
function ftell(resource $stream): int
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/ftell.rs(eval_builtin!) - Dispatch hooks:
direct,values