← All docs
ptr() — internals
Compiler internals for ptr(): lowering path, type checks, and runtime helpers.
ptr() — internals
Where it lives
- Signature:
src/builtins/pointers/ptr.rs - Lowering:
src/codegen/lower_inst/builtins/pointers.rs:25 (lower_ptr) - Function symbol:
lower_ptr()
Lowering notes
- Lowers
ptr(value)by materializing the address of addressable local/global storage.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function ptr(mixed $value): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.