✓
Passing This code compiles and runs correctly.
Code
// FRONTIER (RED — the MULTI-CELL store question, parked): nested capture.
// Spelling migrated to block form 2026-06-12; the SEMANTICS are the open
// design — two live cells means captured { } needs cell ROUTING (which
// write targets which cell), and the single-cell transform rewrites every
// captured in its subtree onto its own cell. Goes green when the store
// design lands (or dies if nested capture is rejected instead).
~import std/io
~import std/control
const std = @import("std");
~tor print-int { value: i32 }
~proc print-int|zig {
std.debug.print("{d}\n", .{value});
}
~capture { outer: 0[i32] }
! as outer |> capture { inner: 0[i32] }
! as inner |> captured { inner: inner.inner + 42 }
| captured result |> captured { outer: outer.outer + result.inner }
| captured final |> print-int(value: final.outer)
Actual
42
Expected output
42
Flows
flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: outer: 0[i32])
Test Configuration
MUST_RUN