about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-08-31 11:20:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-08-31 11:20:28 -0700
commitdba1112cd9f8d6f25675b0d30854ed3b8f235963 (patch)
treedaabc4ba2f4d7d4f22497227c4d572d82ee32cac
parentf3b0f4dc0513388135a57961b5a7a00fd2b9e4e6 (diff)
downloadmu-dba1112cd9f8d6f25675b0d30854ed3b8f235963.tar.gz
90
-rw-r--r--mu.arc10
1 files changed, 5 insertions, 5 deletions
diff --git a/mu.arc b/mu.arc
index 75660d15..0b13030c 100644
--- a/mu.arc
+++ b/mu.arc
@@ -285,6 +285,11 @@
                         (assert nil "get on invalid type @base")))
                 aref
                   (array-ref arg.0 (v arg.1))
+                new
+                  (let type (v arg.0)
+                    (if types*.type!array
+                      (new-array type (v arg.1))
+                      (new-scalar type)))
                 reply
                   (do (pop-stack context)
                       (if empty.context (return ninstrs))
@@ -297,11 +302,6 @@
                         (if empty.context (return ninstrs))
                         (++ pc.context))
                       (continue))
-                new
-                  (let type (v arg.0)
-                    (if types*.type!array
-                      (new-array type (v arg.1))
-                      (new-scalar type)))
                 ; else user-defined function
                   (do (push-stack context op)
                       (continue))