The runtime is written in the raw dialect (docs/lowlevel.md), which the compiler compiles
without reference counting: the allocator and the reference counts themselves are written in
it. So a uses raw function, and a raw struct or raw union, holds only types without
references: numbers, bool, char, raw pointers, raw structs, [T; N], plain enums and T?
of those. An Auk object is reached through a raw.Ptr to the raw struct that mirrors it.
Wrong#
[package]
name = "auk_rt"
version = "0.1.0"
effects = ["raw"]raw struct Name { len: i64, text: str }Fixed#
raw struct Name { len: i64, text: raw.Ptr<u8> }Common causes#
- A
str, list or map in runtime code: use araw.Ptrto its raw struct (raw.Ptr<Str>). - An ordinary
structorenumwith fields: declare it as araw struct. - A
T!result: return a status code or aT?.