Working on GC.
[scheme.forth.jl.git] / throw-catch.4th
diff --git a/throw-catch.4th b/throw-catch.4th
deleted file mode 100644 (file)
index 6bb88fb..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-\ Words implementing exception handling
-
-: catch
-    execute
-    type ;
-
-: throw ( addr -- )
-    begin
-        R> 2dup 1- ' catch =
-    while
-        drop
-    repeat
-
-    >R
-;
-
-: return-depth
-    RSP@ RSP0 - 1- ;
-
-: stack-trace
-    RSP0 1+ begin
-        dup RSP@ <
-    while
-        dup @ 1- @ >name cr .name
-        1+
-    repeat
-
-    drop
-;
-
-: trace
-    cr ." ---" cr
-    ." Return stack depth:" return-depth . cr
-    ." Stack trace:"
-    stack-trace
-    cr ." ---" cr
-
-    trace
-;