// `Subject` is opaque (ADR 0072): only `process.subject` makes one, so a // subject's tag always carries messages of its type. `select` relies on it // within an actor, and distribution across hosts. import std/process.{type Pid, type Subject, type proc} fn forge :: owner: Pid -> Subject { process.Subject(owner, 1) //~ ERROR E0117 `Subject` is opaque } fn retype :: s: Subject -> Subject { process.Subject(..s) //~ ERROR E0117 `Subject` is opaque } fn read_owner :: s: Subject -> Pid { s.owner //~ ERROR E0117 `Subject` is opaque } fn accessors :: s: Subject -> (Pid, Int) { (process.owner s, process.tag s) } fn made :: -> Subject / { process.subject () }