aboutsummaryrefslogtreecommitdiff
path: root/core/control_flow.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/control_flow.nom')
-rw-r--r--core/control_flow.nom27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom
index 16f8537..f066767 100644
--- a/core/control_flow.nom
+++ b/core/control_flow.nom
@@ -5,7 +5,6 @@
use "core/metaprogramming.nom"
use "core/operators.nom"
-use "core/errors.nom"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -449,32 +448,6 @@ test:
")
test:
- $d = {}
- try:
- do:
- $d.x = "bad"
- barf
- ..then always:
- $d.x = "good"
- assume ($d.x == "good")
-
-(do $action then always $final_action) compiles to:
- define mangler
- return
- Lua ("
- do
- local \(mangle "fell_through") = false
- local \(mangle "ok"), \(mangle "ret") = pcall(function()
- \($action as lua)
- \(mangle "fell_through") = true
- end)
- \($final_action as lua)
- if not \(mangle "ok") then error(ret, 0) end
- if not \(mangle "fell_through") then return ret end
- end
- ")
-
-test:
assume ((result of: return 99) == 99)
# Inline thunk: