execution_owner_continuation.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_owner_continuation.bend as Execution_owner_continuation
1 import
import Base
Types
type Header source · line 7 · raw
@-Input:Type -> @-Output:Type -> Type
The existential field retains the actual typed owner header across a pure call. Its native layout stays boxed even when the held product is wide. Bind the header before that call: native ANF hoists nested call arguments before inline constructor arguments, otherwise retaining the unpacked owners.
Header@-Input:Type -> @-Output:Type -> @-Held:Type -> @held:Held -> @resume:(@_:Held -> @_:Input -> Output) -> Header<Input, Output>
type PairedHeader source · line 17 · raw
@-Input:Type -> @-Output:Type -> Type
A unary resume receives both actual owners together, avoiding a curried closure that captures the unpacked Held before receiving Input.
PairedHeader@-Input:Type -> @-Output:Type -> @-Held:Type -> @held:Held -> @resume:(@_:Pair(Held, Input) -> Output) -> PairedHeader<Input, Output>
Definitions
def returned source · line 9 · raw
@-Input:Type -> @-Output:Type -> @header:Header<Input, Output> -> @value:Input -> Output
def decided source · line 12 · raw
@-Output:Type -> @header:Header<Pair(Bool, Bool), Output> -> @valid:Bool -> @compatible:Bool -> Output
def paired_returned source · line 19 · raw
@-Input:Type -> @-Output:Type -> @header:PairedHeader<Input, Output> -> @value:Input -> Output
def pure_paired source · line 22 · raw
@-Output:Type -> @header:PairedHeader<Unit, Output> -> IO(Output)