about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-07-17 07:04:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-07-17 07:04:45 -0700
commit6134f36da88e71adece8b361d50b682964df84b6 (patch)
treeb1cfb91d0ea19f5b037b73244022cf04ac786d0c
parentc8d7559adb41795dc2bbe52f4acae77113a3f34b (diff)
downloadmu-6134f36da88e71adece8b361d50b682964df84b6.tar.gz
24
-rw-r--r--mu.arc9
1 files changed, 2 insertions, 7 deletions
diff --git a/mu.arc b/mu.arc
index 6438f4f4..fa8a1a01 100644
--- a/mu.arc
+++ b/mu.arc
@@ -14,11 +14,6 @@
 ; just a convenience until we get an assembler
 (= type* (obj integer 0 location 1 address 2))
 
-(mac aelse (test else . body)
-  `(aif ,test
-      (do ,@body)
-      ,else))
-
 (def add-fns (fns)
   (each (name . body) fns
     (= function*.name body)))
@@ -110,9 +105,9 @@
                 (do (= result arg)
                     (break))
               ; else user-defined function
-                (aelse function*.op (prn "no definition for " op)
+                (let-or new-body function*.op (prn "no definition for " op)
 ;?                   (prn "== " memory*)
-                  (let results (run it arg (map car oarg))
+                  (let results (run new-body arg (map car oarg))
                     (each o oarg
 ;?                       (prn o)
                       (= (memory* o.1) (memory* pop.results.1)))))
0dce2199447b2b59f0d5866e3a4'>^
71679a31 ^

20fa9632 ^


20fa9632 ^

2f82f50a ^
86c1c388 ^
1a3dc91e ^
20fa9632 ^

20fa9632 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

b21edfaa ^
cd2458c0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78