From 428965131e17d101a16e3ca60b3412101e216cd1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 31 Jul 2018 22:54:35 -0400 Subject: Now implementing box functionality in stdlib instead of the compiler. --- .../common-lisp/procedure/common.jvm.lux | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'new-luxc/source/luxc/lang/translation/common-lisp/procedure') diff --git a/new-luxc/source/luxc/lang/translation/common-lisp/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/common-lisp/procedure/common.jvm.lux index 91a95d2f9..b140a11eb 100644 --- a/new-luxc/source/luxc/lang/translation/common-lisp/procedure/common.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/common-lisp/procedure/common.jvm.lux @@ -301,27 +301,6 @@ (install "exit" (unary runtimeT.io//exit)) (install "current-time" (nullary (function (_ _) (runtimeT.io//current-time runtimeT.unit))))))) -## [[Box]] -(def: box//new - Unary - (|>> (list) _.vector)) - -(def: (box//read box) - Unary - (_.svref box (_.int 0))) - -(def: (box//write [valueO boxO]) - Binary - (runtimeT.box//write valueO boxO)) - -(def: box-procs - Bundle - (<| (prefix "box") - (|> (dict.new text.Hash) - (install "new" (unary box//new)) - (install "read" (unary box//read)) - (install "write" (binary box//write))))) - ## [Bundles] (def: #export procedures Bundle @@ -332,5 +311,4 @@ (dict.merge frac-procs) (dict.merge text-procs) (dict.merge io-procs) - (dict.merge box-procs) ))) -- cgit v1.2.3