diff options
Diffstat (limited to 'lib/SATS')
-rw-r--r-- | lib/SATS/init.sats | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/SATS/init.sats b/lib/SATS/init.sats index 69c6c9a..9fe8581 100644 --- a/lib/SATS/init.sats +++ b/lib/SATS/init.sats @@ -6,6 +6,9 @@ fun {vt:viewt@ype} uninitialized (v : opt(vt,false)): initializable vt fun {vt:viewt@ype} exec_void (r: ref(initializable vt)):<!refwrt> void fun {vt:viewt@ype} exec_void$fwork (v : &vt):<!wrt> void +// function will also inialize if not yet initalized +fun {vt:viewt@ype} exec_init (r: ref(initializable vt)):<!refwrt> void + fun {vt:viewt@ype} {a: t@ype} exec (r: ref(initializable vt)):<!refwrt> a fun {vt:viewt@ype} {a: t@ype} exec$fwork (v : &vt):<!wrt> a |