From cef3f6bdddfe768e7a1a84edcec76c11c1634941 Mon Sep 17 00:00:00 2001 From: Xander Date: Sun, 6 Aug 2023 17:44:45 +0200 Subject: Implemented panic --- lib/SATS/init.sats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/SATS/init.sats') diff --git a/lib/SATS/init.sats b/lib/SATS/init.sats index 9261ca9..69c6c9a 100644 --- a/lib/SATS/init.sats +++ b/lib/SATS/init.sats @@ -6,8 +6,8 @@ fun {vt:viewt@ype} uninitialized (v : opt(vt,false)): initializable vt 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} {a: t@ype} exec (r: ref(initializable vt)): a +fun {vt:viewt@ype} {a: t@ype} exec$fwork (v : &vt): 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