Link manifest-selected source graphs with module-local names, qualified structs/enums/functions and task workers through ordinary AIR verification. Keep source inputs bounded, reject source symlinks and preserve explicit grants, diagnostics and deterministic canonical lowering. Integrate spec 12/15, RFC 0021, source reference budgets, roadmap, examples and CI coverage. Validate 579 conformance tests, unit tests, 76 source constructs, hosted smoke, 36 package CLI checks and task schedule stress.
7 lines
307 B
C++
7 lines
307 B
C++
module app.fields
|
|
struct Pair { left: u64, right: u64 }
|
|
struct Wrap { pair: Pair }
|
|
fn increment(pair: mut<Pair>) -> void effects [] { pair.left = pair.left + 1; }
|
|
fn total(pair: ref<Pair>) -> u64 effects [] { return pair.left + pair.right; }
|
|
fn unwrap(value: Wrap) -> Pair effects [] { return value.pair; }
|