aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-07-31 18:36:18 -0400
committerEduardo Julian2018-07-31 18:36:18 -0400
commiteea58ee669f69fddf2cef9e1675c41959e2e0a55 (patch)
tree5424dab3ef26190958fe4371f3f50995025d31cf /new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
parent748c868680683df1949f62aac274040ac5bf43da (diff)
Now implementing atom functionality in stdlib instead of the compiler.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux14
1 files changed, 0 insertions, 14 deletions
diff --git a/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
index 49f5d9d79..32ab5b10c 100644
--- a/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
@@ -222,19 +222,6 @@
(format @@array//get
@@array//put))
-(def: #export atom//field Text "_lux_atom")
-
-(runtime: (atom//compare-and-swap atom old new)
- (let [atom//field (ruby.string atom//field)]
- (ruby.if! (ruby.= old (ruby.nth atom//field atom))
- (ruby.block! (list (ruby.set-nth! atom//field new atom)
- (ruby.return! (ruby.bool #1))))
- (ruby.return! (ruby.bool #0)))))
-
-(def: runtime//atom
- Runtime
- (format @@atom//compare-and-swap "\n"))
-
(runtime: (box//write value box)
(ruby.block! (list (ruby.set-nth! (ruby.int 0) value box)
(ruby.return! ..unit))))
@@ -263,7 +250,6 @@
runtime//bit "\n"
runtime//text "\n"
runtime//array "\n"
- runtime//atom "\n"
runtime//box "\n"
runtime//process "\n"
))