From 0ecba1bcb1440d27d1c9335491d77981d611e600 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 7 Nov 2014 11:50:41 -0800 Subject: 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 --- mu.arc.t | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mu.arc.t') 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. -- cgit 1.4.1-2-gfad0