def get

bendvy-ecs-core@0.1.0.4 · ordinary_machine_declaration.bend:57

import bendvy-ecs-core@0.1.0.4/ordinary_machine_declaration.bend as OrdinaryMachineDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/machine.bend as M
import bendvy-ecs-core@0.1.0.4/capabilities.bend as Cap

57# Read CurrentView through an existing typed read capability and return its
58# affine owner. Missing state remains explicit; no live machine alias escapes.
59def get(~H:Type,~S:Data,~Token:Data,~V:Data,~cap:Cap.ValueRead<H,M.CurrentView<S,Token,V>>,owner:H) -> H & M.CurrentView<S,Token,V>:
60  Cap.value_read(~H,~M.CurrentView<S,Token,V>,~cap,owner)

Uses (4)

Used by (3)