about summary refs log tree commit diff stats
path: root/callcc.mu
diff options
context:
space:
mode:
Diffstat (limited to 'callcc.mu')
-rw-r--r--callcc.mu17
1 files changed, 0 insertions, 17 deletions
diff --git a/callcc.mu b/callcc.mu
deleted file mode 100644
index 1bf32973..00000000
--- a/callcc.mu
+++ /dev/null
@@ -1,17 +0,0 @@
-# example program: saving and reusing call-stacks or continuations
-
-recipe main [
-  c:continuation <- f
-  continue-from c                         # <-- ..when you hit this
-]
-
-recipe f [
-  c:continuation <- g
-  reply c
-]
-
-recipe g [
-  c:continuation <- current-continuation  # <-- loop back to here
-  $print 1
-  reply c  # threaded through unmodified after first iteration
-]