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-07 11:50:41 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-07 11:50:41 -0800
commit0ecba1bcb1440d27d1c9335491d77981d611e600 (patch)
tree9e595f3e6c74b448e3c8bf30b6cb36d66a822ba1 /mu.arc.t
parent55cf3fb58acb70494664c5d0bc5d63bf993b0b7b (diff)
downloadmu-0ecba1bcb1440d27d1c9335491d77981d611e600.tar.gz
250 - experimental support for _ oarg
This radically overhauls our assumption that args must always be lists,
so we're probably missing things. Where we do, more tests are required.

Only important trace change: .traces/dummy-oarg
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 1da8ac6d..70a38f4d 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -216,6 +216,17 @@
 (if (~iso memory* (obj 1 3  2 5))
   (prn "F - 'idiv' performs integer division, returning quotient and remainder"))
 
+(reset)
+(new-trace "dummy-oarg")
+;? (set dump-trace*)
+(add-fns
+  '((main
+      (_ (2 integer) <- idiv (23 literal) (6 literal)))))
+(run 'main)
+(if (~iso memory* (obj 2 5))
+  (prn "F - '_' oarg can ignore some results"))
+;? (quit)
+
 ; Basic boolean operations: and, or, not
 ; There are easy ways to encode booleans in binary, but we'll skip past those
 ; details for now.