aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/reference.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2017-11-14 01:24:03 -0400
committerEduardo Julian2017-11-14 01:24:03 -0400
commit4a43c41d139dfed45a8ed9b2308cf97fd6f3a59a (patch)
tree44d46a76e93a7cb7299e1faaeba3c9547f0f9372 /new-luxc/source/luxc/lang/translation/reference.jvm.lux
parent290c2389bc762dfaf625d72a76a675ce15119985 (diff)
- Added hashing to avoid collisions in case-insensitive file-systems.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/reference.jvm.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/new-luxc/source/luxc/lang/translation/reference.jvm.lux b/new-luxc/source/luxc/lang/translation/reference.jvm.lux
index 8e229af9c..e9c445dd4 100644
--- a/new-luxc/source/luxc/lang/translation/reference.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/reference.jvm.lux
@@ -1,7 +1,7 @@
(;module:
lux
(lux (control [monad #+ do])
- (data [text]
+ (data [text "text/" Hash<Text>]
text/format)
[meta "meta/" Monad<Meta>])
(luxc ["&" base]
@@ -43,5 +43,5 @@
(def: #export (translate-definition [def-module def-name])
(-> Ident (Meta $;Inst))
- (let [bytecode-name (format def-module "/" (&;normalize-name def-name))]
+ (let [bytecode-name (format def-module "/" (&;normalize-name def-name) (%n (text/hash def-name)))]
(meta/wrap ($i;GETSTATIC bytecode-name commonT;value-field commonT;$Object))))