From b78762c92afee705e618f29f89897db8b45df3dd Mon Sep 17 00:00:00 2001 From: Xander Date: Fri, 28 Jul 2023 21:38:35 +0200 Subject: optional implementation of multboot 1 --- lib/SATS/init.sats | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/SATS/init.sats') diff --git a/lib/SATS/init.sats b/lib/SATS/init.sats index 676657b..8219de1 100644 --- a/lib/SATS/init.sats +++ b/lib/SATS/init.sats @@ -3,6 +3,12 @@ viewtypedef initializable (vt:viewt@ype) = fun {vt:viewt@ype} uninitialized (v : opt(vt,false)): initializable vt -fun {vt:viewt@ype} init_exec (x : &(initializable vt)): void -fun {vt:viewt@ype} init_exec$fwork (v : &vt): void +fun {vt:viewt@ype} exec_void (r: ref(initializable vt)): void +fun {vt:viewt@ype} exec_void$fwork (v : &vt): void + +fun {vt:viewt@ype} {a: t@ype} exec (r: ref(initializable vt), default: a): a +fun {vt:viewt@ype} {a: t@ype} exec$fwork (v : &vt, default: a): a + +fun {vt:viewt@ype} initialize (r: ref(initializable vt)): void +fun {vt:viewt@ype} initialize$fwork (v: &vt? >> opt(vt,success)): #[success : bool] bool success -- cgit v1.2.3