raw is the low-level dialect the Auk runtime is written in (docs/lowlevel.md): raw pointers,
C layouts, mutable globals, export fn. Only the runtime package (runtime/raft.toml,
name = "auk_rt") may use it: the raw effect, raw struct, raw var, export fn and the
fixed-width types are errors anywhere else.
Wrong#
fn peek_byte() uses raw {}Fixed#
fn peek_byte() {}Common causes#
- Reaching for raw memory in ordinary code: bind C functions with
extern fnin a package with theffieffect instead (C pointers areffi.Ptr). - Listing
rawin a package'sraft.tomleffects: only the runtime package may. - Code copied from the runtime into another package.