aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/unsafe
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/unsafe')
-rw-r--r--stdlib/source/unsafe/lux/data/binary.lux6
-rw-r--r--stdlib/source/unsafe/lux/data/collection/array.lux8
2 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/unsafe/lux/data/binary.lux b/stdlib/source/unsafe/lux/data/binary.lux
index 83a6df975..fd68e39e0 100644
--- a/stdlib/source/unsafe/lux/data/binary.lux
+++ b/stdlib/source/unsafe/lux/data/binary.lux
@@ -43,11 +43,11 @@
@.python
(type .public Binary
- (Primitive "bytearray"))
+ (Nominal "bytearray"))
@.scheme
(these (type .public Binary
- (Primitive "bytevector"))
+ (Nominal "bytevector"))
(ffi.import (make-bytevector [Nat] Binary))
(ffi.import (bytevector-u8-ref [Binary Nat] I64))
@@ -201,7 +201,7 @@
(.as .Int <value>)
(,, (.static @.jvm))
- (.as (.Primitive "java.lang.Long") <value>)
+ (.as (.Nominal "java.lang.Long") <value>)
<value>))
<jvm_value> <jvm_value>
<jvm_value> (ffi.long_to_byte <jvm_value>)
diff --git a/stdlib/source/unsafe/lux/data/collection/array.lux b/stdlib/source/unsafe/lux/data/collection/array.lux
index 8c1d0ce47..184be69cf 100644
--- a/stdlib/source/unsafe/lux/data/collection/array.lux
+++ b/stdlib/source/unsafe/lux/data/collection/array.lux
@@ -11,19 +11,19 @@
[type
["[0]" variance]]]]])
-(def .public primitive
+(def .public nominal
"#Array")
(with_template [<item> <array>]
[(.type .public <array>
- {.#Primitive ..primitive {.#Item <item> {.#End}}})]
+ {.#Nominal ..nominal {.#Item <item> {.#End}}})]
[(variance.Mutable r w) (Array' r w)]
[(variance.Mutable a a) (Array a)]
)
-(with_expansions [<index_type> (.Primitive "java.lang.Long")
- <item_type> (.Primitive "java.lang.Object")]
+(with_expansions [<index_type> (.Nominal "java.lang.Long")
+ <item_type> (.Nominal "java.lang.Object")]
(for @.jvm (def jvm_int
(template (jvm_int value)
[(.|> value