about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-11-24 22:05:56 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-24 22:11:46 -0800
commit4feb3daf812a15a2545374947701387657c90051 (patch)
tree3c5adeb2c022df05bffd0a3768c8367cd57110d2 /mu.arc.t
parent74dbd6c41b8a1ab25e607239e0b226da265935d4 (diff)
downloadmu-4feb3daf812a15a2545374947701387657c90051.tar.gz
319 - ack, forgot to handle blocks when tangling
Will the 'lightweight tools' really be all that useable if we encourage
people to layer them one atop another and track precisely what inputs
each can accept? Something to keep an eye on.

In the meanwhile, we have a new (but very unrealistic) example
demonstrating the tangling directives.

There's still a big constraint on ordering: before/after clauses have to
come before functions that need them.
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 069677c2..a1f0c90e 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -2775,4 +2775,19 @@
             (list before*!label1 after*!label1)))
   (prn "F - order matters within 'before' and 'after' fragments, but not *between* 'before' and 'after' fragments"))
 
+(reset)
+;? (new-trace "before-after-braces")
+(add-code '((after label1 [
+               ((1 integer) <- copy (0 literal))
+             ])
+            (def f1 [
+              { begin
+                label1
+              }
+             ])))
+(if (~iso function*!f1
+          '(label1
+            ((1 integer) <- copy (0 literal))))
+  (prn "F - before/after works inside blocks"))
+
 (reset)  ; end file with this to persist the trace for the final test