From 11539792ffcbdba74d6ca63dea2be937d62de7fc Mon Sep 17 00:00:00 2001 From: Xander Date: Fri, 28 Jul 2023 00:57:36 +0200 Subject: Added template init_exec function --- lib/SATS/init.sats | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/SATS/init.sats') diff --git a/lib/SATS/init.sats b/lib/SATS/init.sats index c9d9d89..676657b 100644 --- a/lib/SATS/init.sats +++ b/lib/SATS/init.sats @@ -2,3 +2,7 @@ viewtypedef initializable (vt:viewt@ype) = [initialized: bool] @{ initialized = bool initialized, obj = opt (vt, initialized) } 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 + -- cgit v1.2.3