aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/lua/procedure
diff options
context:
space:
mode:
authorEduardo Julian2018-07-31 22:54:35 -0400
committerEduardo Julian2018-07-31 22:54:35 -0400
commit428965131e17d101a16e3ca60b3412101e216cd1 (patch)
tree2b74c5241ee117aa581f4ee7301fc1e5f1bfa6a8 /new-luxc/source/luxc/lang/translation/lua/procedure
parent97ab1f076ac08992d6b64cd77bc0bef97b3fc50a (diff)
Now implementing box functionality in stdlib instead of the compiler.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/lua/procedure')
-rw-r--r--new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux22
1 files changed, 0 insertions, 22 deletions
diff --git a/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux
index 394dd3d34..f173f24b6 100644
--- a/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/lua/procedure/common.jvm.lux
@@ -285,19 +285,6 @@
(|> (lua.apply "os.time" (list))
(lua.* (lua.int 1_000))))
-## [[Box]]
-(def: box//new
- Unary
- (|>> (list) lua.array))
-
-(def: box//read
- Unary
- (lua.nth (lua.int 1)))
-
-(def: (box//write [valueO boxO])
- Binary
- (runtimeT.box//write valueO boxO))
-
## [Bundles]
(def: lux-procs
Bundle
@@ -375,14 +362,6 @@
(install "exit" (unary io//exit))
(install "current-time" (nullary io//current-time)))))
-(def: box-procs
- Bundle
- (<| (prefix "box")
- (|> (dict.new text.Hash<Text>)
- (install "new" (unary box//new))
- (install "read" (unary box//read))
- (install "write" (binary box//write)))))
-
(def: #export procedures
Bundle
(<| (prefix "lux")
@@ -392,5 +371,4 @@
(dict.merge frac-procs)
(dict.merge text-procs)
(dict.merge io-procs)
- (dict.merge box-procs)
)))