aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/examples/scope.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/examples/scope.frt')
-rw-r--r--amforth-6.5/examples/scope.frt21
1 files changed, 0 insertions, 21 deletions
diff --git a/amforth-6.5/examples/scope.frt b/amforth-6.5/examples/scope.frt
deleted file mode 100644
index d6a5d31..0000000
--- a/amforth-6.5/examples/scope.frt
+++ /dev/null
@@ -1,21 +0,0 @@
-\ The following example shows how to create a library of words under a special
-\ wordlist (can_lib). This example also shows how to chain scope calls safely.
-
-wordlist constant can_lib
-
-get-order 1+ can_lib swap set-order \ can_lib would be searched first
-
-: can_scope ( addr len -- addr' len' wid )
- 2dup
- 4 > if \ name length check
- s" can_" tuck icompare if \ name prefix check
- 4 /string \ drop prefix from created word
- can_lib exit
- then
- else
- drop
- then
- [ ' wlscope defer@ ] literal execute
-;
-
-' can_scope is wlscope