|
Post by svipal on May 27, 2018 1:19:11 GMT
Heyall. From the stdlib doc, I got how to convert between JVM types but I can't figure out how to do it between native Lux types, as well as from JVM types and back. I wonder what I've overlooked.
|
|
|
Post by Eduardo Julian on May 27, 2018 1:31:45 GMT
There are some functions in the standard library for working with native Lux types.
lux;frac-to-real lux;int-to-nat lux;int-to-real lux;nat-to-int lux;real-to-frac lux;real-to-int
Regarding JVM-to-Lux interactions, just remember this: Lux ints are JVM longs. Lux reals are JVM doubles. Lux texts are JVM strings. Lux chars are JVM chars. Lux bools are JVM booleans.
|
|