summaryrefslogtreecommitdiff
path: root/lib/std/types.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/types.myr')
-rw-r--r--lib/std/types.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/types.myr b/lib/std/types.myr
new file mode 100644
index 0000000..5ecf42c
--- /dev/null
+++ b/lib/std/types.myr
@@ -0,0 +1,9 @@
+use sys
+
+pkg std =
+ type size = sys.size /* spans entire address space */
+ type usize = sys.usize /* signed size */
+ type off = sys.off /* file offsets */
+ type intptr = sys.intptr /* can hold any pointer losslessly */
+ type time = sys.time /* milliseconds since epoch */
+;;