aboutsummaryrefslogtreecommitdiff
path: root/src/lux/analyser/lux.clj
diff options
context:
space:
mode:
authorEduardo Julian2015-09-27 01:07:18 -0400
committerEduardo Julian2015-09-27 01:07:18 -0400
commitaa3b52309f2e920688d56b0b00ba12040bf0e841 (patch)
treebe8d7e1bbfeaef29331e6e9eee224b2d2653ddcb /src/lux/analyser/lux.clj
parent506ec627005cca8a2e6f7c4fcf374634be3653de (diff)
- Lux programs can now use libraries for both the JVM (.jar files) and pure Lux code (.tar.gz files).
- Fixed a bug regarding indices and loading/storing from/to arrays.
Diffstat (limited to '')
-rw-r--r--src/lux/analyser/lux.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lux/analyser/lux.clj b/src/lux/analyser/lux.clj
index 488b7ae4f..9dd8cecdc 100644
--- a/src/lux/analyser/lux.clj
+++ b/src/lux/analyser/lux.clj
@@ -558,7 +558,9 @@
active? (&/active-module? path)
_ (&/assert! (not active?) (str "[Analyser Error] Can't import a module that is mid-compilation: " path " @ " module-name))
_ (&&module/add-import path)
- _ (&/when% (not already-compiled?) (compile-module path))]
+ _ (if (not already-compiled?)
+ (compile-module path)
+ (return nil))]
(return &/Nil$)))))
(defn analyse-export [analyse compile-token name]