aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/defer-seal.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/defer-seal.frt')
-rw-r--r--amforth-6.5/common/lib/defer-seal.frt11
1 files changed, 11 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/defer-seal.frt b/amforth-6.5/common/lib/defer-seal.frt
new file mode 100644
index 0000000..9c50a84
--- /dev/null
+++ b/amforth-6.5/common/lib/defer-seal.frt
@@ -0,0 +1,11 @@
+
+\ ' turnkey defer:seal
+
+: defer:seal ( XT -- )
+ dup defer@ ( -- XT' XT )
+ swap ( -- XT XT')
+ dup ['] quit @i ( get DO_COLON) swap !i
+ 1+ dup rot swap !i
+ 1+ ['] exit swap !i
+;
+